mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-12 10:07:42 -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:
@@ -103,7 +103,7 @@ class Server_Add_Controller extends Admin_Controller {
|
||||
access::verify_csrf();
|
||||
|
||||
$task = ORM::factory("task", $task_id);
|
||||
if (!$task->loaded || $task->owner_id != Identity::active()->id) {
|
||||
if (!$task->loaded || $task->owner_id != Session::active_user()->id) {
|
||||
access::forbidden();
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ class Server_Add_Controller extends Admin_Controller {
|
||||
$task->set("mode", "done");
|
||||
}
|
||||
|
||||
$owner_id = Identity::active()->id;
|
||||
$owner_id = Session::active_user()->id;
|
||||
foreach ($entries as $entry) {
|
||||
if (microtime(true) - $start > 0.5) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user