summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/access.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-26 09:36:51 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-26 10:05:25 -0700
commit274d4680fad4aa8254b35b4906847d262b53cd33 (patch)
tree3744da21c47080691e71ef503675691c2946767f /modules/gallery/helpers/access.php
parente4eedbce2298535540cb651d75ba6f1bf42cf02b (diff)
Upgrade the gallery module to version 16 to reflect the refactoring of the user module into an identity provider. Change how we determine if there are available groups that we need to export
Diffstat (limited to 'modules/gallery/helpers/access.php')
-rw-r--r--modules/gallery/helpers/access.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gallery/helpers/access.php b/modules/gallery/helpers/access.php
index a3abbe2e..c1c1f9d1 100644
--- a/modules/gallery/helpers/access.php
+++ b/modules/gallery/helpers/access.php
@@ -421,8 +421,7 @@ class access_Core {
private static function _get_all_groups() {
// When we build the gallery package, it's possible that there is no identity provider installed yet.
// This is ok at packaging time, so work around it.
- $config = module::get_var("gallery", "identity_provider");
- if (!empty($config)) {
+ if (module::is_active(module::get_var("gallery", "identity_provider", "user"))) {
return identity::groups();
} else {
return array();