You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: interface/lib/classes/system.inc.php
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -39,17 +39,17 @@ public function has_service($userid, $service) {
39
39
40
40
if(!preg_match('/^[a-z]+$/', $service)) $app->error('Invalid service '.$service);
41
41
42
-
// Check the servers table to see which kinds of servers we actually have enabled.
43
-
// simple query cache
44
-
if($this->server_count===null) {
45
-
$this->server_count = $app->db->queryOneRecord("SELECT SUM(mail_server) as mail, SUM(web_server) AS web, SUM(dns_server) AS dns, SUM(file_server) AS file,
46
-
SUM(db_server) AS db, SUM(vserver_server) AS vserver, SUM(proxy_server) AS proxy, SUM(firewall_server) AS firewall, SUM(xmpp_server) AS xmpp
47
-
FROM `server` WHERE mirror_server_id = 0");
48
-
}
49
-
// Check if we have the service enabled.
50
-
if ($this->server_count[$service] == 0) {
51
-
returnFALSE;
52
-
}
42
+
// Check the servers table to see which kinds of servers we actually have enabled.
43
+
// simple query cache
44
+
if($this->server_count===null) {
45
+
$this->server_count = $app->db->queryOneRecord("SELECT SUM(mail_server) as mail, SUM(web_server) AS web, SUM(dns_server) AS dns, SUM(file_server) AS file,
46
+
SUM(db_server) AS db, SUM(vserver_server) AS vserver, SUM(proxy_server) AS proxy, SUM(firewall_server) AS firewall, SUM(xmpp_server) AS xmpp
47
+
FROM `server` WHERE mirror_server_id = 0");
48
+
}
49
+
// Check if we have the service enabled.
50
+
if ($this->server_count[$service] == 0) {
51
+
returnFALSE;
52
+
}
53
53
54
54
if(isset($_SESSION['s']['user']) && $_SESSION['s']['user']['typ'] == 'admin') returntrue; //* We do not check admin-users
0 commit comments