diff --git a/modules/Products/views/MoreCurrenciesList.php b/modules/Products/views/MoreCurrenciesList.php index 34f87a1498343d1c02498b6294c26474f748cf4a..c4c1fb9313ecd1ac8323273491525ac4ab0351bc 100644 --- a/modules/Products/views/MoreCurrenciesList.php +++ b/modules/Products/views/MoreCurrenciesList.php @@ -14,7 +14,7 @@ class Products_MoreCurrenciesList_View extends Vtiger_IndexAjax_View { public function checkPermission(Vtiger_Request $request) { $moduleName = $request->getModule(); - if (!Users_Privileges_Model::isPermitted($moduleName, 'EditView')) { + if (!(Users_Privileges_Model::isPermitted($moduleName, 'CreateView') || Users_Privileges_Model::isPermitted($moduleName, 'EditView'))) { throw new AppException(vtranslate('LBL_PERMISSION_DENIED', $moduleName)); } } diff --git a/modules/Settings/Profiles/models/Record.php b/modules/Settings/Profiles/models/Record.php index 2fc1b57da6a75dbb6aa43ec4782b2b584459a5da..10b20aa7a4ac2fcd62816cca84ebad74bd288229 100644 --- a/modules/Settings/Profiles/models/Record.php +++ b/modules/Settings/Profiles/models/Record.php @@ -509,8 +509,8 @@ class Settings_Profiles_Record_Model extends Settings_Vtiger_Record_Model { foreach ($availableActionIds as $actionId) { if ($actionId === 0) { - //Save action permissions = Permissions of Create/Editview action - $actionPermissions[$actionId] = $actionPermissions[1]; + //Save action permissions = Permissions of Create or Editview action + $actionPermissions[$actionId] = $actionPermissions[1] || $actionPermissions[7]; } else { $actionPermissions[$actionId] = $actionPermissions[$actionId]; }