We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 504ba30 commit 97182ecCopy full SHA for 97182ec
interface/lib/classes/system.inc.php
@@ -37,7 +37,7 @@ public function has_service($userid, $service) {
37
38
if(!preg_match('/^[a-z]+$/', $service)) $app->error('Invalid service '.$service);
39
40
- if($userid == 1) return true; //* We do not check admin-users
+ if(isset($_SESSION['s']['user']) && $_SESSION['s']['user']['typ'] == 'admin') return true; //* We do not check admin-users
41
42
// simple query cache
43
if($this->client_service===null)
0 commit comments