meeting fixes

This commit is contained in:
Andreas Stephanides
2015-02-14 17:25:51 +01:00
parent 195b982ef4
commit 14ebb13bc1
7 changed files with 12 additions and 7 deletions

View File

@@ -92,6 +92,7 @@ class Ability
if loggedin
end
if( user.has_role?("fetuser") || user.has_role?("fetadmin"))
can :showversions, Neuigkeit
can :showintern, Neuigkeit
can :showintern, Rubrik

View File

@@ -10,7 +10,7 @@ class Meeting < ActiveRecord::Base
has_one :calentry, as: :object
has_one :calendar, :through=>:meetingtyp
has_one :rubrik, :through=>:meetingtyp
scope :upcomming, includes(:calentry).where("calentries.start>?",1.hour.ago)
accepts_nested_attributes_for :calentry
# validate :agenda, :presence=>true
# validate :protocol, :presence=>true