forked from bofh/fetsite
ability fotogallery
This commit is contained in:
@@ -60,6 +60,8 @@ class Ability
|
||||
|
||||
# can [:show,:index], Gallery, :intern=>false
|
||||
if loggedin
|
||||
can :show,:index, Gallery, :intern=>false
|
||||
can :show, Foto
|
||||
end
|
||||
if( user.has_role?("fetuser") || user.has_role?("fetadmin"))
|
||||
can :manage, Gallery
|
||||
|
||||
Reference in New Issue
Block a user