GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 5c6e0d26 authored by jplang's avatar jplang

Always authorize admin users.

git-svn-id: https://svn.redmine.org/redmine/trunk@15475 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent ea9d918a
......@@ -1417,8 +1417,12 @@ class Issue < ActiveRecord::Base
private
def user_tracker_permission?(user, permission)
roles = user.roles_for_project(project).select {|r| r.has_permission?(permission)}
roles.any? {|r| r.permissions_all_trackers?(permission) || r.permissions_tracker_ids?(permission, tracker_id)}
if user.admin?
true
else
roles = user.roles_for_project(project).select {|r| r.has_permission?(permission)}
roles.any? {|r| r.permissions_all_trackers?(permission) || r.permissions_tracker_ids?(permission, tracker_id)}
end
end
def after_project_change
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment