|
Revision 26995, 1.5 kB
(checked in by fguillaume, 2 years ago)
|
NXP-1743: no comments tab for Anonymous (merged from 5.1 branch)
|
| Line | |
|---|
| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 |
|
|---|
| 3 |
<component name="org.nuxeo.ecm.platform.comment.actions"> |
|---|
| 4 |
|
|---|
| 5 |
<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions"> |
|---|
| 6 |
|
|---|
| 7 |
<action id="view_comments" link="/incl/tabs/document_comments.xhtml" enabled="true" |
|---|
| 8 |
order="80" label="action.view.comments"> |
|---|
| 9 |
<category>VIEW_ACTION_LIST</category> |
|---|
| 10 |
<filter-id>commentable</filter-id> |
|---|
| 11 |
<filter-id>mutable_document</filter-id> |
|---|
| 12 |
<filter-id>not_anonymous</filter-id> |
|---|
| 13 |
</action> |
|---|
| 14 |
|
|---|
| 15 |
<!-- add the comment creation button --> |
|---|
| 16 |
<action id="newComment" link="#{commentManagerActions.addComment}" |
|---|
| 17 |
enabled="true" label="command.add.comments"> |
|---|
| 18 |
<category>COMMENT_ACTIONS</category> |
|---|
| 19 |
<!--<filter-id>canAddComment</filter-id>--> |
|---|
| 20 |
</action> |
|---|
| 21 |
|
|---|
| 22 |
<action id="cancelComment" link="#{commentManagerActions.cancelComment}" |
|---|
| 23 |
enabled="true" label="command.cancel"> |
|---|
| 24 |
<category>COMMENT_ACTIONS</category> |
|---|
| 25 |
<!--<filter-id>canAddComment</filter-id>--> |
|---|
| 26 |
</action> |
|---|
| 27 |
|
|---|
| 28 |
</extension> |
|---|
| 29 |
|
|---|
| 30 |
<extension target="org.nuxeo.ecm.platform.actions.ActionService" |
|---|
| 31 |
point="filters"> |
|---|
| 32 |
<filter id="comment"> |
|---|
| 33 |
<rule grant="true"> |
|---|
| 34 |
<type>Comment</type> |
|---|
| 35 |
</rule> |
|---|
| 36 |
</filter> |
|---|
| 37 |
|
|---|
| 38 |
<filter id="commentable"> |
|---|
| 39 |
<rule grant="true"> |
|---|
| 40 |
<facet>Commentable</facet> |
|---|
| 41 |
</rule> |
|---|
| 42 |
</filter> |
|---|
| 43 |
|
|---|
| 44 |
<filter id="canAddComment"> |
|---|
| 45 |
<rule grant="true"> |
|---|
| 46 |
<permission>AddChildren</permission> |
|---|
| 47 |
</rule> |
|---|
| 48 |
</filter> |
|---|
| 49 |
|
|---|
| 50 |
</extension> |
|---|
| 51 |
|
|---|
| 52 |
</component> |
|---|