mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-27 01:59:28 +08:00
Fix illegal return statement [SCI-5634]
This commit is contained in:
parent
b7513c6d5f
commit
5137a5b1a3
1 changed files with 5 additions and 3 deletions
|
@ -25,9 +25,11 @@ Canaid::Permissions.register_for(Asset) do
|
|||
when Result
|
||||
can_manage_result?(object)
|
||||
when RepositoryCell
|
||||
return false if object.repository_column.repository.is_a?(RepositorySnapshot)
|
||||
|
||||
can_manage_repository?(user, object.repository_column.repository)
|
||||
if object.repository_column.repository.is_a?(RepositorySnapshot)
|
||||
false
|
||||
else
|
||||
can_manage_repository?(user, object.repository_column.repository)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue