Project

General

Profile

Feature #3453 » redmine-allow-anonymous-user-create-issues-in-private-project.diff

Alexander Pánek, 2009-10-14 00:49

View differences:

app/models/user.rb (working copy)
roles = roles_for_project(project)
return false unless roles
roles.detect {|role| (project.is_public? || role.member?) && role.allowed_to?(action)}
roles.detect {|role| role.allowed_to?(action)}
elsif options[:global]
# Admin users are always authorized
(2-2/2)