Start simplifying the interface by moving the static methods from user.php and group.php. Tried creating a identity helper, but the helper identity.php was confused with the library Identity.php. So got around this by making the methods on Identity static and calling the instance within the static methods. Also temporarily moved the user.php and group.php back into the user module.

This commit is contained in:
Tim Almdal
2009-10-16 08:53:31 -07:00
parent be6765336e
commit 00eacd659f
56 changed files with 441 additions and 426 deletions
@@ -35,8 +35,8 @@ class Digibug_Controller_Test extends Unit_Test_Case {
$root = ORM::factory("item", 1);
$this->_album = album::create($root, rand(), "test album");
access::deny(group::everybody(), "view_full", $this->_album);
access::deny(group::registered_users(), "view_full", $this->_album);
access::deny(Identity::everybody(), "view_full", $this->_album);
access::deny(Identity::registered_users(), "view_full", $this->_album);
$rand = rand();
$this->_item = photo::create($this->_album, MODPATH . "gallery/tests/test.jpg", "$rand.jpg",