summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-14 18:33:10 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-14 18:33:10 -0800
commit30dcaaa2365ab88c0516a10bfa287fd2208dcf57 (patch)
tree2409676720fb3103a2b7ef29757c407c52709aba /modules/gallery/libraries
parent0eb9b43a3388b1de801cc4ffdfcbcc0e0d236858 (diff)
Need to allow access to ::change_provider for CLI, to make packager work.
Diffstat (limited to 'modules/gallery/libraries')
-rw-r--r--modules/gallery/libraries/IdentityProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/IdentityProvider.php b/modules/gallery/libraries/IdentityProvider.php
index 9fbc5e21..01ea9ad7 100644
--- a/modules/gallery/libraries/IdentityProvider.php
+++ b/modules/gallery/libraries/IdentityProvider.php
@@ -66,7 +66,7 @@ class IdentityProvider_Core {
}
static function change_provider($new_provider) {
- if (!identity::active_user()->admin) {
+ if (!identity::active_user()->admin && PHP_SAPI != "cli") {
// Below, the active user is set to the primary admin.
access::forbidden();
}