diff --git a/airtime_mvc/application/controllers/UserController.php b/airtime_mvc/application/controllers/UserController.php index 3faa1477f..2b1197a9c 100644 --- a/airtime_mvc/application/controllers/UserController.php +++ b/airtime_mvc/application/controllers/UserController.php @@ -198,6 +198,11 @@ class UserController extends Zend_Controller_Action $user = new Application_Model_User($delId); + if (isset($CC_CONFIG['demo']) && $CC_CONFIG['demo'] == 1 + && $user->getLogin() == 'admin') { + return; + } + # Take care of the user's files by either assigning them to somebody # or deleting them all if ($files_action == "delete_cascade") {