Skip to content
Snippets Groups Projects
Commit 59d831f0 authored by Prasad's avatar Prasad
Browse files

Allow only admin to change other user preferences.

parent 88716121
No related branches found
No related tags found
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment