mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 09:43:51 -04:00
Need to allow access to ::change_provider for CLI, to make packager work.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user