function CheckRights() { $users = new usersMenus(); if ($users->IsSuperAdmin()) { return true; } if ($users->AsSambaAdministrator) { return true; } if ($users->AsPostfixAdministrator) { return true; } if ($users->AsMessagingOrg) { return true; } if ($users->AsMailBoxAdministrator) { return true; } if ($users->AsDansGuardianAdministrator) { return true; } return false; }