add role author to execution_environment_policy
This commit is contained in:
@ -7,4 +7,8 @@ class ExecutionEnvironmentPolicy < AdminOnlyPolicy
|
||||
[:execute_command?, :shell?, :statistics?].each do |action|
|
||||
define_method(action) { admin? || author? }
|
||||
end
|
||||
|
||||
[:create?, :index?, :new?].each do |action|
|
||||
define_method(action) { admin? || teacher? }
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user