-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
M5
-
4.1 M6
At this time the user can not edit its own user content
The CurrentUserContentAccessControler should provide front edition right on /cms ?...?
This is the actual code in the project
/** * Check if the content matches the current user */ public class CheckCurrentUserContentCondition implements Condition { public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws WorkflowException { WorkflowAwareContent content = (WorkflowAwareContent) transientVars.get(AbstractContentWorkflowComponent.CONTENT_KEY); if (content == null) { throw new WorkflowException("Unable to retrieve content"); } String language = content.getLanguage(); String currentUserContent = UserXSLTHelper.getCurrentUserContent(language); return currentUserContent != null && currentUserContent.equals(content.getId()); } }
- Fait partie de
-
FRONTEDIT-68 Front edition right should be checked on current page instead of "/cms" context
- Closed