Commit 59d831f0 authored by Prasad's avatar Prasad
Browse files

Allow only admin to change other user preferences.

parent 88716121
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ class Users_Save_Action extends Vtiger_Save_Action {
		
		if ($allowed) {
			// Deny access if not administrator or account-owner or self
			if(!$currentUserModel->isAdminUser() && !$recordModel->isAccountOwner()) {
			if(!$currentUserModel->isAdminUser()) {
				if (empty($record)) {
					$allowed = false;
				} else if ($currentUserModel->get('id') != $recordModel->getId()) {