Index: openacs-4/packages/calendar/tcl/cal-item-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/tcl/cal-item-procs.tcl,v diff -u -r1.20 -r1.21 --- openacs-4/packages/calendar/tcl/cal-item-procs.tcl 12 Jul 2004 14:49:55 -0000 1.20 +++ openacs-4/packages/calendar/tcl/cal-item-procs.tcl 8 Aug 2006 21:26:17 -0000 1.21 @@ -58,7 +58,15 @@ # by default, the cal_item permissions # are going to be inherited from the calendar permissions set cal_item_id [db_exec_plsql cal_item_add {}] + + db_dml set_item_type_id "update cal_items set item_type_id=:item_type_id where cal_item_id=:cal_item_id" + # removing inherited permissions + if { [calendar::personal_p -calendar_id $calendar_id] } { + permission::set_not_inherit -object_id $cal_item_id + } + # ## + assign_permission $cal_item_id $creation_user read assign_permission $cal_item_id $creation_user write assign_permission $cal_item_id $creation_user delete