mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-09 05:37:36 +08:00
Fix sharing permission for task sharing [SCI-10918]
This commit is contained in:
parent
7f2d4cba3e
commit
0efa1b96be
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ Canaid::Permissions.register_for(MyModule) do
|
|||
end
|
||||
|
||||
can :share_my_module do |user, my_module|
|
||||
my_module.permission_granted?(user, MyModulePermissions::SHARE)
|
||||
my_module.team.shareable_links_enabled? && my_module.permission_granted?(user, MyModulePermissions::SHARE)
|
||||
end
|
||||
|
||||
can :restore_my_module do |user, my_module|
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue