ability fotogallery

This commit is contained in:
Andreas Stephanides
2015-02-25 16:07:55 +01:00
parent 3b332d5272
commit 0575546603

View File

@@ -60,6 +60,8 @@ class Ability
# can [:show,:index], Gallery, :intern=>false # can [:show,:index], Gallery, :intern=>false
if loggedin if loggedin
can :show,:index, Gallery, :intern=>false
can :show, Foto
end end
if( user.has_role?("fetuser") || user.has_role?("fetadmin")) if( user.has_role?("fetuser") || user.has_role?("fetadmin"))
can :manage, Gallery can :manage, Gallery