meeting fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user