@@ -129,7 +129,7 class Project < ActiveRecord::Base | |||||
129 | if perm = Redmine::AccessControl.permission(permission) |
|
129 | if perm = Redmine::AccessControl.permission(permission) | |
130 | unless perm.project_module.nil? |
|
130 | unless perm.project_module.nil? | |
131 | # If the permission belongs to a project module, make sure the module is enabled |
|
131 | # If the permission belongs to a project module, make sure the module is enabled | |
132 |
base_statement << " AND |
|
132 | base_statement << " AND #{Project.table_name}.id IN (SELECT em.project_id FROM #{EnabledModule.table_name} em WHERE em.name='#{perm.project_module}')" | |
133 | end |
|
133 | end | |
134 | end |
|
134 | end | |
135 | if options[:project] |
|
135 | if options[:project] |
General Comments 0
You need to be logged in to leave comments.
Login now