PFAHandler:

- add protected $is_superadmin = 1;
  will be set to 0 if $admin_username is set and is not a superadmin



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1714 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 10 years ago
parent f07281cdc1
commit 72d9d42601

@ -46,6 +46,8 @@ abstract class PFAHandler {
# set in __construct()
protected $admin_username = "";
# will be set to 0 if $admin_username is set and is not a superadmin
protected $is_superadmin = 1;
# the ID of the current item (where item can be an admin, domain, mailbox, alias etc.)
# filled in init()
@ -93,6 +95,10 @@ abstract class PFAHandler {
if ($new) $this->new = 1;
$this->admin_username = $admin_username;
if ($admin_username != "" && (! authentication_has_role('global-admin') ) ) {
$this->is_superadmin = 0;
}
if ($this->domain_field == "") {
$this->no_domain_field();
} else {

Loading…
Cancel
Save