Commit fca43922 authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch 'patch-5' into 'stable-3.1'

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

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

See merge request !443
parents 504ba304 97182ec0
......@@ -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