Skip to content
Snippets Groups Projects

TriggerCheckPermission from webui is been removed, to mandate checkpermission for all.

Merged Uma requested to merge uma.s/vtigercrm:38276053_checkPermission_Overall into master
+ 74
42
Compare changes
  • Side-by-side
  • Inline
Files
+ 8
8
@@ -194,16 +194,16 @@ class Vtiger_WebUI extends Vtiger_EntryPoint {
}
//TODO : Need to review the design as there can potential security threat
$skipList = array('Users', 'Home', 'CustomView', 'Import', 'Export', 'Inventory', 'Vtiger', 'PriceBooks', 'Migration', 'Install');
if(!in_array($module, $skipList) && stripos($qualifiedModuleName, 'Settings') === false) {
$this->triggerCheckPermission($handler, $request);
}
// $skipList = array('Users', 'Home', 'CustomView', 'Import', 'Export', 'Inventory', 'Vtiger', 'PriceBooks', 'Migration', 'Install');
//
// if(!in_array($module, $skipList) && stripos($qualifiedModuleName, 'Settings') === false) {
// $this->triggerCheckPermission($handler, $request);
// }
// Every settings page handler should implement this method
if(stripos($qualifiedModuleName, 'Settings') === 0 || ($module == 'Users')) {
$handler->checkPermission($request);
}
// if(stripos($qualifiedModuleName, 'Settings') === 0 || ($module == 'Users')) {
$handler->checkPermission($request);
// }
$notPermittedModules = array('ModComments','Integration','DashBoard');
Loading