Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
en:modifications:make_public_filter_default [2014/11/20 21:19] swarnat created |
en:modifications:make_public_filter_default [2014/11/20 21:24] (current) swarnat |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| === File: /modules/CustomView/CustomView.php === | === File: /modules/CustomView/CustomView.php === | ||
| - | ** Search ** | + | == Search == |
| <code php> | <code php> | ||
| Line 15: | Line 15: | ||
| else | else | ||
| $permission = "no"; | $permission = "no"; | ||
| - | |||
| - | $permission = "yes"; | ||
| } | } | ||
| </code> | </code> | ||
| - | ** Replace with ** | + | == Replace with == |
| <code php> | <code php> | ||
| - | } elseif ($action != 'ChangeStatus') { | ||
| - | if ($userid == $current_user->id) { | ||
| - | $log->debug("Entering when $userid=$current_user->id"); | ||
| - | $permission = "yes"; | ||
| } elseif ($status == CV_STATUS_PUBLIC) { | } elseif ($status == CV_STATUS_PUBLIC) { | ||
| if ($action == 'ListView' || $action == $module . "Ajax" || $action == 'index' || $action == 'DetailView') { | if ($action == 'ListView' || $action == $module . "Ajax" || $action == 'index' || $action == 'DetailView') { | ||
| Line 35: | Line 29: | ||
| $permission = "no"; | $permission = "no"; | ||
| - | $permission = "yes"; | + | $permission = "yes"; // This line will be added |
| } | } | ||
| </code> | </code> | ||