Permalink
Browse files

Need to allow access to ::change_provider for CLI, to make packager w…

…ork.
  • Loading branch information...
1 parent 0eb9b43 commit 30dcaaa2365ab88c0516a10bfa287fd2208dcf57 @andyst andyst committed Feb 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/gallery/libraries/IdentityProvider.php
@@ -66,7 +66,7 @@ static function confirmation_message() {
}
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();
}

0 comments on commit 30dcaaa

Please sign in to comment.