role system

Author Message

Georg Franz

Saturday 28 February 2004 5:19:28 am

Hi,

I try to start again a discussion about the role system after digging in the code of ez 3.4-alpha1.

Example:

I create a role "registered user".

The registered user should
-) create forum messages in section a
-) create link entries in section b

So I created two policies.

The "registered user" can't create a link entry in section b, because the checkAccess-method of ezcontentobject always returns "not allowed". (It checks only the first policy and break after that.)

If I made one policy instead of two
-) create forum messages / link entries in section a, b

it works. But in that case it's also possible for the user to create a link entry in section a which I want to prevent.

So I don't know if it's a bug or a feature.

If you have many content classes & sections it's more user friendly to create a policy for each content class.

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Kåre Køhler Høvik

Monday 01 March 2004 4:16:19 am

This looks like a bug. We'll get it fixed in the next few days. Thanks for checking things like this and reporting about them.

--
Kåre Høvik

Kåre Høvik

Kåre Køhler Høvik

Monday 29 March 2004 1:57:45 am

Gone trough this bug report, and it seems to work now. Rev. 5653.
http://ez.no/community/bug_reports/some_role_troubles_with_the_latest_trunk_5292

--
Kåre Høvik

Kåre Høvik

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.