summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/html.php2
-rw-r--r--lib/plugins/authad/auth.php13
2 files changed, 15 insertions, 0 deletions
diff --git a/inc/html.php b/inc/html.php
index fb39fcb3c..3bef75eab 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -1352,6 +1352,8 @@ function html_updateprofile(){
/** @var auth_basic $auth */
global $auth;
+ var_dump($auth);
+
print p_locale_xhtml('updateprofile');
$fullname = $INPUT->post->str('fullname', $INFO['userinfo']['name'], true);
diff --git a/lib/plugins/authad/auth.php b/lib/plugins/authad/auth.php
index 5d5f532b6..b6b5dd268 100644
--- a/lib/plugins/authad/auth.php
+++ b/lib/plugins/authad/auth.php
@@ -111,6 +111,19 @@ class auth_plugin_authad extends DokuWiki_Auth_Plugin {
}
/**
+ * Load domain config on capability check
+ *
+ * @param string $cap
+ * @return bool
+ */
+ public function canDo($cap) {
+ //capabilities depend on config, which may change depending on domain
+ $domain = $this->_userDomain($_SERVER['REMOTE_USER']);
+ $this->_loadServerConfig($domain);
+ return parent::canDo($cap);
+ }
+
+ /**
* Check user+password [required auth function]
*
* Checks if the given user exists and the given