Need to allow access to ::change_provider for CLI, to make packager work.

This commit is contained in:
Andy Staudacher
2010-02-14 18:33:10 -08:00
parent 0eb9b43a33
commit 30dcaaa236

View File

@@ -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();
}