diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-03-14 17:58:53 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-03-14 17:58:53 +0000 |
commit | 06e3e0c7b506a637df1ea27c6a8a439756e7139d (patch) | |
tree | 99accf2efb7e3868a6d3356e612052ef24267fb9 /lib/plugins/auth.php | |
parent | 792883c4aaba64146ea38cd62287c96cb8121c1f (diff) | |
download | rpg-06e3e0c7b506a637df1ea27c6a8a439756e7139d.tar.gz rpg-06e3e0c7b506a637df1ea27c6a8a439756e7139d.tar.bz2 |
use $requireGroups constants in auth classes; comments; code improvements
Diffstat (limited to 'lib/plugins/auth.php')
-rw-r--r-- | lib/plugins/auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/auth.php b/lib/plugins/auth.php index f9e5cded9..9275611be 100644 --- a/lib/plugins/auth.php +++ b/lib/plugins/auth.php @@ -232,7 +232,7 @@ class DokuWiki_Auth_Plugin extends DokuWiki_Plugin { * at least these fields: * * name string full name of the user - * mail string email addres of the user + * mail string email address of the user * grps array list of groups the user is in * * @author Andreas Gohr <andi@splitbrain.org> @@ -240,7 +240,7 @@ class DokuWiki_Auth_Plugin extends DokuWiki_Plugin { * @param bool $requireGroups whether or not the returned data must include groups * @return array containing user data or false */ - public function getUserData($user, $requireGroups=true) { + public function getUserData($user, $requireGroups=self::REQUIRE_GROUPS) { if(!$this->cando['external']) msg("no valid authorisation system in use", -1); return false; } |