mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 21:36:44 +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))
|
where(id: with_granted_user_permissions.reselect(:id))
|
||||||
.or(where(id: with_granted_group_permissions.reselect(:id)))
|
.or(where(id: with_granted_group_permissions.reselect(:id)))
|
||||||
}
|
}
|
||||||
end
|
|
||||||
|
|
||||||
def self.permission_class
|
def self.permission_class
|
||||||
self
|
self
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def permission_granted?(user, permission)
|
def permission_granted?(user, permission)
|
||||||
|
|
Loading…
Add table
Reference in a new issue