mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-22 12:29:11 -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:
@@ -23,7 +23,7 @@ class Comment_Model_Test extends Unit_Test_Case {
|
||||
$root = ORM::factory("item", 1);
|
||||
$album = album::create($root, rand(), rand(), rand());
|
||||
$comment = comment::create($album, Identity::guest(), "text", "name", "email", "url");
|
||||
Identity::set_active(Identity::guest());
|
||||
Session::set_active_user(Identity::guest());
|
||||
|
||||
// We can see the comment when permissions are granted on the album
|
||||
access::allow(Identity::everybody(), "view", $album);
|
||||
|
||||
Reference in New Issue
Block a user