Skip to content
Snippets Groups Projects
Commit 52d5d25a authored by Uma's avatar Uma
Browse files

Fixes admin settings as non-admin user

parent 1536b824
No related branches found
No related tags found
1 merge request!668Fixes Non-admin user privelege settings on non-accessible fields
......@@ -91,9 +91,9 @@ class Users_SaveAjax_Action extends Vtiger_SaveAjax_Action {
$currentUserModel = Users_Record_Model::getCurrentUserModel();
$fieldModelList = $recordModel->getModule()->getFields();
$validatedFielNames = array('is_admin', 'is_owner', 'roleid', 'signature');
$validationFields = array('is_admin', 'is_owner', 'roleid', 'signature');
foreach ($fieldModelList as $fieldName => $fieldModel) {
if(in_array($fieldName, $validatedFielNames)){
if(in_array($fieldName, $validationFields)){
if ($request->has($fieldName)) {
$fieldValue = $request->get($fieldName, null);
} else {
......
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