mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:10:12 +01:00
admin user can tag search results, too
This commit is contained in:
parent
ee7a51f1dd
commit
1eb5d46e74
@ -461,9 +461,9 @@ class ModelSearchSearch extends Model {
|
|||||||
$q = $q2 = '';
|
$q = $q2 = '';
|
||||||
$arr = $a = $result = array();
|
$arr = $a = $result = array();
|
||||||
|
|
||||||
if($id == '') { return 0; }
|
if(count($id) < 1) { return array(); }
|
||||||
|
|
||||||
if(Registry::get('admin_user') == 1 || Registry::get('auditor_user') == 1) { return 1; }
|
if(Registry::get('admin_user') == 1 || Registry::get('auditor_user') == 1) { return $id; }
|
||||||
|
|
||||||
$arr = $id;
|
$arr = $id;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user