From 0575546603ff359c14610384c14e6017fdd9638f Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Wed, 25 Feb 2015 16:07:55 +0100 Subject: [PATCH] ability fotogallery --- app/models/ability.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/ability.rb b/app/models/ability.rb index 35084d1..6098c22 100755 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -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