includes/pageutils.php
changeset 19 5d003b6c9e89
parent 16 64e0d3d4cf14
child 21 663fcf528726
--- a/includes/pageutils.php	Sat Jun 23 10:38:24 2007 -0400
+++ b/includes/pageutils.php	Sat Jun 23 18:54:16 2007 -0400
@@ -1784,6 +1784,10 @@
           break;
         case 'save_new':
         case 'save_edit':
+          if ( defined('ENANO_DEMO_MODE') )
+          {
+            return Array('mode'=>'error','error'=>'Editing access control lists is disabled in the administration demo.');
+          }
           $q = $db->sql_query('DELETE FROM '.table_prefix.'acl WHERE target_type='.intval($parms['target_type']).' AND target_id='.intval($parms['target_id']).'
             '.$page_where_clause_lite.';');
           if(!$q)
@@ -1811,6 +1815,10 @@
             );
           break;
         case 'delete':
+          if ( defined('ENANO_DEMO_MODE') )
+          {
+            return Array('mode'=>'error','error'=>'Editing access control lists is disabled in the administration demo.');
+          }
           $q = $db->sql_query('DELETE FROM '.table_prefix.'acl WHERE target_type='.intval($parms['target_type']).' AND target_id='.intval($parms['target_id']).'
             '.$page_where_clause_lite.';');
           if(!$q)