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
......@@ -37,7 +37,7 @@ class system {
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
if($this->client_service===null)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment