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)
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
(2-2/2)