mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-28 18:53:58 -04:00
Move the default identity config into the users module and change the Identity constructor to look in module::get_var(gallery, identity_provider) for the current identity driver.
In addition, don't just arbitrarily lock the use module. Only lock gallery and the module that is referenced by "user_driver_module" variable.
This commit is contained in:
@@ -90,7 +90,8 @@ class module_Core {
|
||||
|
||||
// Lock certain modules
|
||||
$modules->gallery->locked = true;
|
||||
$modules->user->locked = true;
|
||||
$identity_module = self::get_var("gallery", "identity_provider", "user");
|
||||
$modules->$identity_module->locked = true;
|
||||
$modules->ksort();
|
||||
self::$available = $modules;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user