mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 07:34:41 +08:00
Fix permission_class method [SCI-11953]
This commit is contained in:
parent
be8b5e8bf5
commit
65af2ee44f
1 changed files with 3 additions and 3 deletions
|
@ -26,10 +26,10 @@ module PermissionCheckableModel
|
|||
where(id: with_granted_user_permissions.reselect(:id))
|
||||
.or(where(id: with_granted_group_permissions.reselect(:id)))
|
||||
}
|
||||
end
|
||||
|
||||
def self.permission_class
|
||||
self
|
||||
def self.permission_class
|
||||
self
|
||||
end
|
||||
end
|
||||
|
||||
def permission_granted?(user, permission)
|
||||
|
|
Loading…
Add table
Reference in a new issue