summaryrefslogtreecommitdiffstats
path: root/lib/redmine.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-26 19:30:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-26 19:30:36 +0000
commitf3523f25fd9714c462076ce202d5d6d09e192c26 (patch)
tree2b331841ccf3598cb1526718322b076932dbbf03 /lib/redmine.rb
parent9fbf4de6534b36b8ddc8c1baa8279f3b619178e6 (diff)
downloadredmine-f3523f25fd9714c462076ce202d5d6d09e192c26.tar.gz
redmine-f3523f25fd9714c462076ce202d5d6d09e192c26.zip
Fixed that time entry queries cannot be saved when issue tracking is disabled (#14790).
git-svn-id: http://svn.redmine.org/redmine/trunk@16718 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r--lib/redmine.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index cd706bae8..6f4d3e07c 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -86,6 +86,9 @@ Redmine::AccessControl.map do |map|
map.permission :manage_members, {:projects => :settings, :members => [:index, :show, :new, :create, :edit, :update, :destroy, :autocomplete]}, :require => :member
map.permission :manage_versions, {:projects => :settings, :versions => [:new, :create, :edit, :update, :close_completed, :destroy]}, :require => :member
map.permission :add_subprojects, {:projects => [:new, :create]}, :require => :member
+ # Queries
+ map.permission :manage_public_queries, {:queries => [:new, :create, :edit, :update, :destroy]}, :require => :member
+ map.permission :save_queries, {:queries => [:new, :create, :edit, :update, :destroy]}, :require => :loggedin
map.project_module :issue_tracking do |map|
# Issues
@@ -110,9 +113,6 @@ Redmine::AccessControl.map do |map|
map.permission :view_private_notes, {}, :read => true, :require => :member
map.permission :set_notes_private, {}, :require => :member
map.permission :delete_issues, {:issues => :destroy}, :require => :member
- # Queries
- map.permission :manage_public_queries, {:queries => [:new, :create, :edit, :update, :destroy]}, :require => :member
- map.permission :save_queries, {:queries => [:new, :create, :edit, :update, :destroy]}, :require => :loggedin
# Watchers
map.permission :view_issue_watchers, {}, :read => true
map.permission :add_issue_watchers, {:watchers => [:new, :create, :append, :autocomplete_for_user]}