Index: openacs-4/packages/chat/www/room-delete.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/chat/www/room-delete.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/chat/www/room-delete.tcl 7 Jun 2007 09:14:25 -0000 1.4 +++ openacs-4/packages/chat/www/room-delete.tcl 19 Nov 2007 01:14:16 -0000 1.5 @@ -2,8 +2,9 @@ ad_page_contract { Display delete confirmation. - @author David Dao (ddao@arsdigita.com) and Pablo Mu�oz(pablomp@tid.es) - + @author David Dao (ddao@arsdigita.com) + @creation-date November 15, 2000 + @cvs-id $Id$ } { room_id:notnull,integer } -properties { @@ -12,25 +13,8 @@ context_bar:onevalue } -set user_id [ad_conn user_id] +ad_require_permission $room_id chat_room_delete -#A professor who creates a rooom will be able to admin it. -db_1row room_info2 { - select count(cr.creator) as counter2 - from chat_rooms cr - where cr.room_id = :room_id - and cr.creator = :user_id - } - if { $counter2 > 0} { - set admin_professor "t" - } else { - set admin_professor "f" - } -if { $admin_professor eq "t"} { -} else { - ad_require_permission $room_id chat_room_delete -} - set context_bar [list [list "room?room_id=$room_id" "[_ chat.Room_Information]"] "[_ chat.Delete_room]"] set pretty_name [chat_room_name $room_id]