forked from bofh/fetsite
calentry js interface
This commit is contained in:
@@ -129,7 +129,7 @@ class Ability
|
||||
|
||||
can [:show,:index], Calendar
|
||||
can [:edit, :update,:new,:create,:verwalten], Calendar
|
||||
can [:edit, :update,:new,:create,:verwalten], Calentry
|
||||
can [:edit, :update,:new,:create,:verwalten,:delete], Calentry
|
||||
end
|
||||
if( user.has_role?("fetadmin"))
|
||||
can [:delete],Calendar
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#
|
||||
|
||||
class Calentry < ActiveRecord::Base
|
||||
attr_accessible :ende, :start, :summary, :typ,:calendar_ids, :calendar, :dauer
|
||||
attr_accessible :ende, :start, :summary, :typ,:calendar_ids, :calendar, :dauer, :object_id, :object_type
|
||||
belongs_to :calendar
|
||||
#belongs_to :neuigkeit
|
||||
validates :start, :presence => true
|
||||
|
||||
Reference in New Issue
Block a user