Feature #9968
Promote security publishing configuration automatically when persisting models
| Status: | New | Start date: | 2010-09-28 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assigned To: | Andreas Förthner | % Done: | 0% |
|
| Category: | Security | |||
| Target version: | - | |||
| PHP Version: | Complexity: | |||
| Has patch: |
Description
When we persist a model that holds a file, we should be able to configure its needed publishing configuration in the policy. The can be done on the basis of securit resource, as shown in the following example:
SecurityPublishingConfiguration:
F3_Blog_Domain_Model_Post_HiddenPosts:
fileProperty: image
publishingConfiguration:
roles: [ Editor, Administrator ]
expireDate: 2h
This would add a publishing configuration with roles and an expire date to all file objects that are attached to posts that match the F3_Blog_Domain_Model_Post_HiddenPosts security resource (entity resource identifier).
Related issues
History
#1 Updated by Andreas Förthner over 4 years ago
There is a problem, if a resource object is used (published) before it is persisted. Maybe we should skip this feature?