Skip to content

Commit

Permalink
[kawasima#212] New permission: execute_testcases
Browse files Browse the repository at this point in the history
New permission definition (execute_testcases) to enable a user to execute tests but avoid create or modify test plans, test suites or test cases.
  • Loading branch information
Saragu0 committed Feb 5, 2014
1 parent dfb9156 commit 608e023
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@
'impasse_requirement_issues' => [:index],
'impasse_screenshots' => [:show],
}

permission :execute_testcases, {
'impasse_test_case' => [:index, :show, :list, :keywords],
'impasse_test_plans' => [:index, :show, :list, :statistics],
'impasse_requirement_issues' => [:index],
'impasse_executions' => [:index, :get_list, :new, :edit, :destroy, :put],
'impasse_execution_bugs' => [:new, :edit, :destroy, :upload_attachments],
'impasse_screenshots' => [:show, :new, :destroy],
}, :require => :member

permission :manage_testcases, {
'impasse_test_case' => [:new, :edit, :destroy, :copy, :move, :copy_to_another_project, :screenshot],
'impasse_test_plans' => [:new, :edit, :destroy,:copy, :add_test_case, :remove_test_case],
Expand Down

0 comments on commit 608e023

Please sign in to comment.