Commit graph

18 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 7f14193c39 fix SecurityIdentity username with multiple dashes 2012-04-24 14:53:42 +02:00
Hugo Hamon 070ba6ba50 [Model] [Acl] removed useless else clause in Entry::toAclEntry(). 2012-04-06 10:24:20 +02: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 babf3bf203 fix ObjectIdentity insert with assigned parent 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 78424c5519 add tests for ACL related models 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 33acc67b63 fix several use cases in updateAncestorsTree 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 0fa42f794b fix EntryQuery to find class based entries 2012-02-07 17:25:33 +01:00
Toni Uebernickel cabb199646 add MutableAclProvider and MutableAcl 2012-02-07 17:25:33 +01:00
Toni Uebernickel 4224dedd9b add immutable AclProvider for read-only ACL access 2012-02-07 17:25:33 +01:00
Toni Uebernickel f6edbe3e7b add model for access control list
The schema is compatible with the distributed schema of the Security component.
2012-02-07 17:25:33 +01:00