mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 03:59:51 +08:00
Merge pull request #3723 from okriuchykhin/ok_SCI_6331
Fix permission checks for archived tasks [SCI-6331]
This commit is contained in:
commit
331bec5979
1 changed files with 17 additions and 1 deletions
|
@ -4,12 +4,28 @@ Canaid::Permissions.register_for(MyModule) do
|
||||||
# Module, its experiment and its project must be active for all the specified
|
# Module, its experiment and its project must be active for all the specified
|
||||||
# permissions
|
# permissions
|
||||||
%i(manage_my_module
|
%i(manage_my_module
|
||||||
|
manage_my_module_protocol
|
||||||
manage_my_module_users
|
manage_my_module_users
|
||||||
|
manage_my_module_designated_users
|
||||||
assign_my_module_repository_rows
|
assign_my_module_repository_rows
|
||||||
|
manage_my_module_repository_rows
|
||||||
|
create_results
|
||||||
create_my_module_comments
|
create_my_module_comments
|
||||||
|
create_comments_in_my_module_steps
|
||||||
|
create_my_module_result_comments
|
||||||
create_my_module_repository_snapshots
|
create_my_module_repository_snapshots
|
||||||
manage_my_module_repository_snapshots
|
manage_my_module_repository_snapshots
|
||||||
update_my_module_status)
|
update_my_module_start_date
|
||||||
|
update_my_module_due_date
|
||||||
|
complete_my_module
|
||||||
|
update_my_module_description
|
||||||
|
manage_my_module_tags
|
||||||
|
update_my_module_status
|
||||||
|
manage_my_module_steps
|
||||||
|
complete_my_module_steps
|
||||||
|
uncomplete_my_module_steps
|
||||||
|
check_my_module_steps
|
||||||
|
uncheck_my_module_steps)
|
||||||
.each do |perm|
|
.each do |perm|
|
||||||
can perm do |_, my_module|
|
can perm do |_, my_module|
|
||||||
my_module.active? &&
|
my_module.active? &&
|
||||||
|
|
Loading…
Reference in a new issue