Improve security API to allow testing arbitrary user's permissions ------------------------------------------------------------------
Key: MAGNOLIA-4589 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-4589 Project: Magnolia Issue Type: Improvement Security Level: Public Components: security Affects Versions: 4.5.3 Reporter: Tomas Brimor The security API should allow you to test an arbitrary user's permissons against a specific Magnolia resource. As it is now only the logged in user as found in the context is accessible for permission testing. Example of pseudo usage: {code} workspace = "someworkspace" path = "/path/to/a/node" node = NodeUtil.getNode(workspace, path) userName = "myuser" userObj = Security.getUser(userName) hasPermission = Security.isGranted(userObj, node, Permission.READ) {code} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------