From 5db285c6fd64471ad35ffde2d6c744e62fd60079 Mon Sep 17 00:00:00 2001 From: Preexo <tim.niklas@web.de> Date: Fri, 1 Apr 2016 12:29:56 +0800 Subject: [PATCH] removed conditions which checked for a parameter which never existed. --- modules/CustomView/CustomView.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/modules/CustomView/CustomView.php b/modules/CustomView/CustomView.php index 34667e87f..e32386894 100644 --- a/modules/CustomView/CustomView.php +++ b/modules/CustomView/CustomView.php @@ -1897,11 +1897,7 @@ class CustomView extends CRMEntity { if ($status == CV_STATUS_DEFAULT) { $log->debug("Entering when status=0"); - if ($action == 'ListView' || $action == $module . "Ajax" || $action == 'index' || $action == 'DetailView') { - $permission = "yes"; - } - else - $permission = "no"; + $permission = "yes"; } elseif ($is_admin) { $permission = 'yes'; @@ -1911,11 +1907,7 @@ class CustomView extends CRMEntity { $permission = "yes"; } elseif ($status == CV_STATUS_PUBLIC) { $log->debug("Entering when status=3"); - if ($action == 'ListView' || $action == $module . "Ajax" || $action == 'index' || $action == 'DetailView') { - $permission = "yes"; - } - else - $permission = "no"; + $permission = "yes"; } elseif ($status == CV_STATUS_PRIVATE || $status == CV_STATUS_PENDING) { $log->debug("Entering when status=1 or 2"); -- GitLab