Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Commit

Permalink
remove global scope
Browse files Browse the repository at this point in the history
  • Loading branch information
pablorodriguez committed Dec 3, 2018
1 parent 12e42c7 commit a01dcdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/policies/g5_authenticatable/base_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ def admin?
user.present? && user.has_role?(:admin)
end

def editor?(global_scope=false)
def editor?
user.present? && user.has_role?(:editor)
end

def viewer?(global_scope=false)
def viewer?
user.present? && user.has_role?(:viewer)
end

Expand Down

0 comments on commit a01dcdb

Please sign in to comment.