mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
removes unneeded permissions
This commit is contained in:
parent
76b08e6ac9
commit
4b2098c0c4
1 changed files with 0 additions and 15 deletions
|
@ -118,18 +118,3 @@ Canaid::Permissions.register_for(RepositoryColumn) do
|
|||
end
|
||||
end
|
||||
|
||||
Canaid::Permissions.register_for(Project) do
|
||||
# view project
|
||||
can :read_project do |user, project|
|
||||
user.is_admin_of_team?(project.team) ||
|
||||
user.is_member_of_project?(project) ||
|
||||
(project.visible? && user.is_member_of_team?(project.team))
|
||||
end
|
||||
end
|
||||
|
||||
Canaid::Permissions.register_for(Experiment) do
|
||||
# view experiment
|
||||
can :read_experiment do |user, experiment|
|
||||
user.is_member_of_team?(experiment.project.team)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue