I can't seem to find an example of adding new/custom permissions to a Zope site. Maybe there's another way. I currently have a site with three types of users Author Author2 Editor Each role has specific things that they should be able to do. The problem I'm running into is that some permissions are lumped into categories that don't make sense for my users. For example: The author role should be able to create new content in any folder they should be limited in what content they can create. Authors should not be allowed to create news, new folders, topics, or events. Author2 can only create ONE type of document. Editors can create all types of documents. The problem I've run into is that Authors need to be able to create folders only under their home directories. Adding the "add folder" permission and the "manage properties" permission under the owner role allows this to happen. Unfortunately by adding the manage properties it also gives them access to syndication and local roles, which I do not want them to have. How do I rectify this or create new permissions that more closely match what I need to do. _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
On Fri, 2003-04-04 at 07:41, Michael Havard wrote:
I can't seem to find an example of adding new/custom permissions to a Zope site. Maybe there's another way.
If you're saying what I think you are, you're talking about something that needs to be defined in the product's source code. You *could* always subclass/modify the code for your built-in products, but I wouldn't advise it without a great deal of analysis. The kinds of roles and considerations you describe are fairly typical for Zope and I would venture that the existing permissions are probably sufficient. You've got complex enough requirements here that a simple answer won't do. I'd suggest checking out the newest version of the documentation and come back to the list with any finer-grained challenges you run into. You may want to pay particular attention to the section on Security Policy Acquisition, as I suspect this may be where some of your answers lie. http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/Security.stx HTH, Dylan
participants (2)
-
Dylan Reinhardt -
Michael Havard