diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-08-04 02:25:32 -0700 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-08-04 02:25:32 -0700 |
commit | 90d5fa676926189b265430239dca3b7ba668b30b (patch) | |
tree | 35565b5c3030d39ef947f3a5eb062037b6ac3f61 /lib | |
parent | b1865a58289579973dbfa719632ade4265de9978 (diff) | |
parent | 2f46ade0bbc43b599bedf620e2514171cce072df (diff) | |
download | rpg-90d5fa676926189b265430239dca3b7ba668b30b.tar.gz rpg-90d5fa676926189b265430239dca3b7ba668b30b.tar.bz2 |
Merge pull request #268 from splitbrain/FS#2806
FS#2806 - fix auth capability listing in html_debug()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/plugins/auth.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/plugins/auth.php b/lib/plugins/auth.php index ec8ed7e58..dc66d6380 100644 --- a/lib/plugins/auth.php +++ b/lib/plugins/auth.php @@ -55,6 +55,18 @@ class DokuWiki_Auth_Plugin extends DokuWiki_Plugin { } /** + * Available Capabilities. [ DO NOT OVERRIDE ] + * + * For introspection/debugging + * + * @author Christopher Smith <chris@jalakai.co.uk> + * @return array + */ + public function getCapabilities(){ + return array_keys($this->cando); + } + + /** * Capability check. [ DO NOT OVERRIDE ] * * Checks the capabilities set in the $this->cando array and |