On 30 May 2005, at 14:48, Jean-Marc Orliaguet wrote:
I looked at the code in CPSUserFolder and started to try to implement
role blocking.

However, I couldn't get much far since there are a couple of serious
bugs that need to be fixed first in PluggableUserFolder /
SimpleGroupRoles before starting working on role blocking. In the end I
couldn't see if it was the role blocking code that I was writing that
was wrong or the existing code underneath. So the first thing to do
before implemented role blocking is to sanitize the code.

Well, the first thing to do would be to write unit tests for getRolesInContext and friends :)

Florent


So far, the only issue left is the workflow create transition that is
incorrect (used in folder_factories) when roles are set through
role:Authenticated.

e.g.:
- create a /workspaces/test folder
- assign "Workspace Member" to 'role:authenticated' on /workspaces/ test - go to /workspaces/test/folder_factories as an authenticated user which
is not Workspace Member in /workspaces/test .

=> no content type can be created.

--
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to