Commit bc9f2598 authored by Greeshma's avatar Greeshma
Browse files

custom filter deletion supported for non admin

parent 06726906
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ class CustomView_Delete_Action extends Vtiger_Action_Controller {
		$moduleModel = $customViewModel->getModule();
		$customViewOwner = $customViewModel->getOwnerId();
		$currentUser = Users_Record_Model::getCurrentUserModel();
		if ((!$currentUser->isAdminUser()) || ($customViewOwner != $currentUser->getId())) {
		if ((!$currentUser->isAdminUser()) && ($customViewOwner != $currentUser->getId())) {
			throw new AppException(vtranslate('LBL_PERMISSION_DENIED'));
		}
		$customViewModel->delete();