mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
v0.2.0
git-svn-id: http://redmine.rubyforge.org/svn/trunk@7 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -27,7 +27,7 @@ module ApplicationHelper
|
||||
|
||||
def authorize_for(controller, action)
|
||||
# check if action is allowed on public projects
|
||||
if @project.public? and Permission.allowed_to_public "%s/%s" % [ controller, action ]
|
||||
if @project.is_public? and Permission.allowed_to_public "%s/%s" % [ controller, action ]
|
||||
return true
|
||||
end
|
||||
# check if user is authorized
|
||||
|
||||
Reference in New Issue
Block a user