make FileManagerService 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


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).

-- 
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