Skip to content
Snippets Groups Projects
Commit b98c223d authored by Prasad's avatar Prasad
Browse files

Merge branch 'solve_#159' into 'master'

removed conditions which checked for a parameter which never existed.

#159

See merge request !51
parents fd4fdc70 5db285c6
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment