Commit graph

13 commits

Author SHA1 Message Date
Adel
4219e706d4 RUN PHP-CS PSR-2 2012-07-19 17:40:35 +01:00
William DURAND
6970913db9 Fixed CS 2012-05-24 16:36:46 +02:00
Toni Uebernickel
680da9e977 add handling of AclCacheInterface 2012-02-07 17:25:35 +01:00
Toni Uebernickel
04e7970312 make use of \PropelObjectCollection 2012-02-07 17:25:35 +01:00
Toni Uebernickel
e73bc1098b apply code conventions (static public and phpDoc) 2012-02-07 17:25:35 +01:00
Toni Uebernickel
af1053e149 add AuditableAcl(Provider)
* update provider class to AuditableAclProvider
* change auditing default to be more reasonable, 90% use case: log failures only
* add transformers to Model\Acl\Entry converting from/to Security\Acl\Domain\Entry
* fix MutableAclProvider to use getAcl method instead of creating MutableAcl directly
* re-factor MutableAcl::updateAce and MutableAclProvider::persistAcl to use Entry transformers
2012-02-07 17:25:35 +01:00
Toni Uebernickel
2231df621c add more tests for (Mutable)AclProvider
* fix usage of existing database entries
2012-02-07 17:25:35 +01:00
Toni Uebernickel
27daeebfb9 add tests for AclProvider and MutableAclProvider
* re-factor Tests\Model\Acl\TestCase to Tests\AclTestCase sharing between Model\Acl and Security\Acl tests
* fix schema setting auditing flags to true by default
* fix MutableAcl inserting field based ACEs
* fix MutableAclProvider removing class based ACEs if last object identity is being removed
* fix EntryQuery error message if non-object has been provided in list of SecurityIdentity
2012-02-07 17:25:34 +01:00
Toni Uebernickel
15b387a950 change behavior on deleting an ACL
The MutableAclProviderInterface expects to remove all child ACLs upon deletion.

* fix createAcl to check for existing parent
2012-02-07 17:25:34 +01:00
Toni Uebernickel
7b127b2a5c retrieve parentAcl in AclProvider::findAcl
* change default inherited value to true to comply with database default value
2012-02-07 17:25:34 +01:00
Toni Uebernickel
4b6001c6fe pass PDO connection to all methods within ACL 2012-02-07 17:25:33 +01:00
Toni Uebernickel
3524cd8a6b add handling of parent ACL
* fix ObjectIdentityQuery::findGrandChildren
2012-02-07 17:25:33 +01:00
Toni Uebernickel
cabb199646 add MutableAclProvider and MutableAcl 2012-02-07 17:25:33 +01:00