Ticket #216 (closed Bug)

Opened 3 years ago

Last modified 3 years ago

Creating new documents and acl evaluation

Reported by: frank.taffelt@… Owned by:
Priority: Minor Milestone:
Component: Version: 1.3
Keywords: Cc:

Description

[jira2trac import : issue created on December 1, 2005 5:30:46 AM CET http://issues.cocoondev.org/browse/DSY-216 ]

i have a documenttype named company which has a documentfield named department that is a selection list. This field is marked for acl evaluation and possible values are "sales" and "production" and "marketing".
I wanted to give users special rights for editing such documents. My acl expression for this was documentType = 'company' and $department = 'Sales' where i granted write access to special roles. When i try to create a new document the list with allowed documenttypes misses the company documenttype. I'm not sure how the fieldvalue $department gets evaluated when it has no value in case of creating new documents?

Change History

comment:1 Changed 3 years ago by paul

  • Status changed from new to closed

[jira2trac import : comment created by bruno on February 1, 2006 8:15:31 AM CET]

Sorry for taking so long to respond to this issue, but I had forgotten about it.

When testing on field values in the ACL, the behaviour is such that the document type will be displayed in the list as long as there is some possibility that a user might be able to use it.

I tried to reproduce it (on my current development installation) but everything works fine here.

I seem to remember there was indeed a problem with this in the past, though I don't know in which version exactly this was fixed.

comment:2 Changed 3 years ago by paul

[jira2trac import : comment created by bruno on May 25, 2007 8:31:24 AM CEST]

A bug was fixed in the logic of the "and" operator in SVN rev 4023. This bug might also have been the cause of this issue. Will assume it is fixed now, if not the issue can be reopend.

Note: See TracTickets for help on using tickets.