Feature #3453 » redmine-allow-anonymous-user-create-issues-in-private-project.diff
| app/models/user.rb (working copy) | ||
|---|---|---|
| 273 | 273 | |
| 274 | 274 |
roles = roles_for_project(project) |
| 275 | 275 |
return false unless roles |
| 276 |
roles.detect {|role| (project.is_public? || role.member?) && role.allowed_to?(action)}
|
|
| 276 |
roles.detect {|role| role.allowed_to?(action)}
|
|
| 277 | 277 | |
| 278 | 278 |
elsif options[:global] |
| 279 | 279 |
# Admin users are always authorized |
- « Previous
- 1
- 2
- Next »