summaryrefslogtreecommitdiff
path: root/lib/plugins/auth.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-05-04 19:20:11 +0100
committerChristopher Smith <chris@jalakai.co.uk>2014-05-04 19:20:11 +0100
commit2dc9e90007f12ac996b0e74479137a9dc6243c3c (patch)
treefd22408ecdbd51181c9ac1b95f2d56366391df24 /lib/plugins/auth.php
parent06e3e0c7b506a637df1ea27c6a8a439756e7139d (diff)
downloadrpg-2dc9e90007f12ac996b0e74479137a9dc6243c3c.tar.gz
rpg-2dc9e90007f12ac996b0e74479137a9dc6243c3c.tar.bz2
KISS - remove class constants for REQUIRE_GROUPS & IGNORE_GROUPS and replace with boolean values
Diffstat (limited to 'lib/plugins/auth.php')
-rw-r--r--lib/plugins/auth.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/plugins/auth.php b/lib/plugins/auth.php
index 9275611be..b38b591a3 100644
--- a/lib/plugins/auth.php
+++ b/lib/plugins/auth.php
@@ -15,9 +15,6 @@ if(!defined('DOKU_INC')) die();
class DokuWiki_Auth_Plugin extends DokuWiki_Plugin {
public $success = true;
- const IGNORE_GROUPS = false;
- const REQUIRE_GROUPS = true;
-
/**
* Possible things an auth backend module may be able to
* do. The things a backend can do need to be set to true
@@ -240,7 +237,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=self::REQUIRE_GROUPS) {
+ public function getUserData($user, $requireGroups=true) {
if(!$this->cando['external']) msg("no valid authorisation system in use", -1);
return false;
}