disable deletion of users

This commit is contained in:
Martin Konecny 2013-03-26 16:10:42 -04:00
parent caa2413fd8
commit 5dc0a4477b
1 changed files with 5 additions and 0 deletions

View File

@ -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") {