AutoCommit Mit Jun 10 17:03:04 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-06-10 17:03:04 +02:00
parent d10401c1c4
commit c57095bbca
5 changed files with 46 additions and 9 deletions

View File

@@ -160,16 +160,19 @@ end
cannot :delete, Meeting
end
if user.has_role?( "fetadmin")
can :manage, Meetingtyp
end
can :manage, Meetingtyp
end
# Rechteverwaltung Kalender
can [:show, :index], Calendar, :public => true
can [:showics], Calendar
can [:show], Calentry
# can [:show], Calentry
if (!k.nil? && k.typ==1 && (k.user.has_role?("fetuser")||k.user.has_role?("fetadmin")))
can [:show,:index], Calendar
end
if( user.has_role?("fetuser") || user.has_role?("fetadmin")|| (!k.nil? && k.typ==1 && (k.user.has_role?("fetuser")||k.user.has_role?("fetadmin"))))
if( user.has_role?("fetuser") || user.has_role?("fetadmin")||)
can [:show,:index], Calendar
can [:edit, :update,:new,:create,:verwalten], Calendar
can [:edit, :update,:new,:create,:verwalten,:delete], Calentry