My new Role can't create content (Access denied)

Author Message

Adolfo Barragán

Friday 05 September 2003 3:04:07 am

I've created a new role but when I press "new" button I receive "Access denied".

My site has two sections: "guests" and "catalog". In the same way the site has two folder under roor: "guest" and "catalog". I've created two new class "category" and "product".

I want supervisors only can create "categories" or "products" under section (or folder) "catalog". So I created a new Role "supervisor" and assign it the following policies:

user : login : *
content : read : *
content : create : Class(Category , Product) , Section(Catalog)
content : edit : Class(Category , Product) , Section(Catalog)
content : remove : Class(Category , Product) , Section(Catalog)

I create a "supervisor" and a "supervisors" group, and I assign to role "supervisor"

When I login as supervisor I go to catalog folder, I only see in select box "category" and "product". Ok, but... If I press the "create here" button I receive an Access denied message.

What I wrong?

Thanks in advance

Volker Lenz

Saturday 06 September 2003 3:17:03 am

Check your site access rules in your site.ini.append files. Maybe you have set a module-based restricition that prevents you from creating content at all.

Adolfo Barragán

Monday 08 September 2003 3:09:34 am

No, my site access rule entries are the standard.

Jesper Haggren

Tuesday 09 September 2003 1:46:18 pm

hi there.

I am sitting here with the exact same problem. my problem:

I have a folder called products.
In this folder i have created an object of type:manufactor (my own content class).
Under this manufactor-object I have created a new object of type:device (own content class).

Now I trying to make a user, eg. role which have acces to create manufactors in the folder, and devices under manufactors. roles:

user login *
content read *
content create Subtree( products ) class(manufactors) parentClass(folder)
content create Subtree( products ) class(devices) parentClass(manufactors)
content edit Class( manufactors , devices )

THIS DOES NOT WORK....
When I click "create here" I get an access denied error.
I have discovered that if I change the edit role to:

content edit *

...is works!... but then the user has access to edit all kinds of objects.. both articles etc. in the entire section..

is this an eZ3.1 bug.. or am I doing anything wrong??

Jesper Haggren
zolid I/S

Jesper Haggren

Tuesday 09 September 2003 2:50:49 pm

just made a clean install of the eZ3.2 b2... looks like they have fixed the problem there..

If only eZ3.2 b2 did'nt have so many other broken bugs.. like the sitemap (Module not found) and the login with the unfinished </-error which makes login required twice!

I'm still very interested in a bugfix for the problem for eZ3.1

jesper

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

eZ debug

Timing: Jan 18 2025 19:31:09
Script start
Timing: Jan 18 2025 19:31:09
Module start 'layout'
Timing: Jan 18 2025 19:31:09
Module start 'content'
Timing: Jan 18 2025 19:31:10
Module end 'content'
Timing: Jan 18 2025 19:31:10
Script end

Main resources:

Total runtime0.6692 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.1797152.6406
Module start 'layout' 0.00540.0036 741.820339.4922
Module start 'content' 0.00900.6587 781.3125565.0547
Module end 'content' 0.66770.0014 1,346.367212.1250
Script end 0.6691  1,358.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5474160.0002
Check MTime0.00140.2039160.0001
Mysql Total
Database connection0.00080.116110.0008
Mysqli_queries0.605790.5201650.0093
Looping result0.00080.1158630.0000
Template Total0.637595.320.3187
Template load0.00210.315520.0011
Template processing0.635494.949120.3177
Template load and register function0.00020.025310.0002
states
state_id_array0.00080.120110.0008
state_identifier_array0.00080.126020.0004
Override
Cache load0.00190.2808450.0000
Sytem overhead
Fetch class attribute can translate value0.00150.219430.0005
Fetch class attribute name0.00210.314160.0004
XML
Image XML parsing0.00150.220130.0005
class_abstraction
Instantiating content class attribute0.00000.002660.0000
General
dbfile0.00080.1267160.0001
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs