[ 
http://jira.nuxeo.org/browse/NXP-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Grisel updated NXP-1798:
--------------------------------

    Description: 
Currently the permission check is hard coded in 
FileManageActionsBean.addBinaryFileFromPlugin:

            if (!documentManager.hasPermission(currentDocument.getRef(),
                    "AddChildren")) {
                return TRANSF_ERROR + " |(" + fullName + ")| " + "no_right";
            }

This should be delegated to the registered plugin so that plugins can actually 
decide to create files in folders different from currentDocument (for instance 
a centralised import folder).

  was:
Currently the permission check is hard coded in 
FileManagerService.addBinaryFileFromPlugin:

            if (!documentManager.hasPermission(currentDocument.getRef(),
                    "AddChildren")) {
                return TRANSF_ERROR + " |(" + fullName + ")| " + "no_right";
            }

This should be delegated to the registered plugin so that plugins can actually 
decide to create files in folders different from currentDocument (for instance 
a centralised import folder).

        Summary: make FileManageActionsBeanc delegate permission checks to the 
plugin  (was: make FileManagerService delegate permission checks to the plugin)

fixed class name

> make FileManageActionsBeanc delegate permission checks to the plugin
> --------------------------------------------------------------------
>
>                 Key: NXP-1798
>                 URL: http://jira.nuxeo.org/browse/NXP-1798
>             Project: Nuxeo Enterprise Platform 5
>          Issue Type: Bug
>    Affects Versions: 5.1.2
>            Reporter: Olivier Grisel
>            Assignee: Olivier Grisel
>             Fix For: 5.1.3, 5.2 M1
>
>   Original Estimate: 2 hours
>  Remaining Estimate: 2 hours
>
> Currently the permission check is hard coded in 
> FileManageActionsBean.addBinaryFileFromPlugin:
>             if (!documentManager.hasPermission(currentDocument.getRef(),
>                     "AddChildren")) {
>                 return TRANSF_ERROR + " |(" + fullName + ")| " + "no_right";
>             }
> This should be delegated to the registered plugin so that plugins can 
> actually decide to create files in folders different from currentDocument 
> (for instance a centralised import folder).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to