mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-05 20:54:27 +08:00
Merge pull request #8807 from artoscinote/ma_SCI_12271
Fix logic parenthesis in .can_manage_shared? [SCI-12271]
This commit is contained in:
commit
ff99f1df65
1 changed files with 2 additions and 2 deletions
|
@ -50,8 +50,8 @@ module Shareable
|
|||
end
|
||||
|
||||
def can_manage_shared?(user)
|
||||
globally_shared? ||
|
||||
(shared_with?(user.current_team) && user.current_team.permission_granted?(user, TeamPermissions::MANAGE))
|
||||
(globally_shared? || shared_with?(user.current_team)) &&
|
||||
user.current_team.permission_granted?(user, TeamPermissions::MANAGE)
|
||||
end
|
||||
|
||||
def shareable_write?
|
||||
|
|
Loading…
Add table
Reference in a new issue