Skip to content
Snippets Groups Projects
Commit 97182ec0 authored by Martin's avatar Martin
Browse files

Make sure admin check apply to all admins and not just user 1.

parent 504ba304
No related branches found
No related tags found
Loading
...@@ -37,7 +37,7 @@ class system { ...@@ -37,7 +37,7 @@ class system {
if(!preg_match('/^[a-z]+$/', $service)) $app->error('Invalid service '.$service); if(!preg_match('/^[a-z]+$/', $service)) $app->error('Invalid service '.$service);
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
// simple query cache // simple query cache
if($this->client_service===null) if($this->client_service===null)
......
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