diff options
Diffstat (limited to 'lib/Auth.php')
-rw-r--r-- | lib/Auth.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Auth.php b/lib/Auth.php index 9eaa498..de29e7f 100644 --- a/lib/Auth.php +++ b/lib/Auth.php @@ -219,6 +219,18 @@ class Auth { return $groups; } + public function list_roles($domain = NULL, $attributes = array(), $search = array(), $params = array()) + { + $this->connect($domain); + if ($domain === NULL) { + $domain = $this->conf->get('primary_domain'); + } + + $roles = $this->_auth[$domain]->list_roles($attributes, $search, $params); + + return $roles; + } + public function primary_for_valid_domain($domain) { $this->domains = $this->list_domains(); |