diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-16 10:06:58 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-16 10:06:58 -0700 |
commit | 78ee4193b70329c8e0929efd18c22324dd2ad8e0 (patch) | |
tree | 900c686f12934fdf168ebe214afc1cb414bf4683 /modules/user/controllers/users.php | |
parent | bc241e44c2e4d10ac19ccc32a40c90426672d963 (diff) |
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.
Diffstat (limited to 'modules/user/controllers/users.php')
-rw-r--r-- | modules/user/controllers/users.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/controllers/users.php b/modules/user/controllers/users.php index ebce1d8d..0ccf3e2a 100644 --- a/modules/user/controllers/users.php +++ b/modules/user/controllers/users.php @@ -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(); } |