Skip to content

Commit 4c2c339

Browse files
committed
Add an extra utility function is_reseller
1 parent 9741885 commit 4c2c339

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

interface/lib/classes/auth.inc.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ public function is_superadmin() {
5353
}
5454
}
5555

56+
public function is_reseller() {
57+
if($this->has_clients($_SESSION['s']['user']['userid'])) {
58+
return true;
59+
} else {
60+
return false;
61+
}
62+
}
5663
public function has_clients($userid) {
5764
global $app, $conf;
5865

0 commit comments

Comments
 (0)