Can't access to WebDAV root directory #427
This commit is contained in:
parent
95db100e0f
commit
ff6424db52
@ -33,7 +33,7 @@ module RedmineDmsf
|
||||
if User.current.admin?
|
||||
@projects = Project.visible.order('lft').to_a
|
||||
elsif User.current.logged? # If user is not admin, we should only show memberships relevant
|
||||
User.current.memberships.each{ |m| @Projects << m.project if m.roles.detect{ |r| r.allowed_to?(:view_dmsf_folders) } }
|
||||
User.current.memberships.each{ |m| @projects << m.project if m.roles.detect{ |r| r.allowed_to?(:view_dmsf_folders) } }
|
||||
end
|
||||
end
|
||||
@projects.delete_if { |node| !node.module_enabled?('dmsf') } if @projects
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user