[Zope-CMF] Dynamic Roles?
Dieter Maurer
dieter@handshake.de
Wed, 15 Jan 2003 23:23:01 +0100
John Waycott wrote at 2003-1-14 08:30 -0700:
> I have started to set up a CMF/Plone Intranet site for the first time
> and wonder if roles can be determined dynamically or programatically?
>
> For example, I add user metadata for "supervisor". Then, create two
> roles "supervisor" and "subordinate", and then set up some condition to
> indicate when these roles are true.
>
> I know I can set up scripts in the workflow to look into the user
> metadata to determine who my supervisor is, but it seems more elegant
> and simpler to me to think of my supervisor and my list of subordinates
> as roles. It would also mean that once a dynamic role was set up, all of
> the CMF security machinery would then take advantage of it.
This is (probably) possible.
Maybe, NuxUserGroups uses something like that.
Check it out to see whether this is true.
Dieter