mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-19 13:25:36 -04:00
Change the name of identity library from Identity to IdentityProvider. Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
This commit is contained in:
@@ -21,7 +21,7 @@ class Admin_Controller extends Controller {
|
||||
private $theme;
|
||||
|
||||
public function __construct($theme=null) {
|
||||
if (!(Session::active_user()->admin)) {
|
||||
if (!(identity::active_user()->admin)) {
|
||||
access::forbidden();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user