mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-05 20:23:16 +08:00
Merge pull request #7752 from rekonder/aj_SCI_10918
Fix sharing permission for task sharing [SCI-10918]
This commit is contained in:
commit
9277e89b5e
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…
Reference in a new issue