mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-21 00:49:55 -04:00
Remove all non Identity API methods from Identity.php. Created an MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
This commit is contained in:
@@ -21,7 +21,7 @@ class Users_Controller extends Controller {
|
||||
public function update($id) {
|
||||
$user = user::lookup($id);
|
||||
|
||||
if ($user->guest || $user->id != Identity::active()->id) {
|
||||
if ($user->guest || $user->id != Session::active_user()->id) {
|
||||
access::forbidden();
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ class Users_Controller extends Controller {
|
||||
|
||||
public function form_edit($id) {
|
||||
$user = user::lookup($id);
|
||||
if ($user->guest || $user->id != Identity::active()->id) {
|
||||
if ($user->guest || $user->id != Session::active_user()->id) {
|
||||
access::forbidden();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user