diff --git a/inc/process_profile.class.php b/inc/process_profile.class.php index b789a6d..dd27d4b 100644 --- a/inc/process_profile.class.php +++ b/inc/process_profile.class.php @@ -11,6 +11,11 @@ class PluginProcessmakerProcess_Profile extends CommonDBTM { function can($ID, $right, array &$input = NULL) { + switch ($right) { + case DELETE : + case PURGE : + return (Session::haveRight('plugin_processmaker_config', UPDATE)); + } return Session::haveRight('plugin_processmaker_config', $right); }