Forums / Setup & design / My new Role can't create content (Access denied)

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

eZ debug

Timing: Jan 18 2025 18:17:17
Script start
Timing: Jan 18 2025 18:17:17
Module start 'content'
Timing: Jan 18 2025 18:17:17
Module end 'content'
Timing: Jan 18 2025 18:17:17
Script end

Main resources:

Total runtime0.1302 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.8594180.8125
Module start 'content' 0.00500.0051 768.671997.9297
Module end 'content' 0.01000.1201 866.6016527.3750
Script end 0.1301  1,393.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.5483200.0002
Check MTime0.00141.0724200.0001
Mysql Total
Database connection0.00070.516310.0007
Mysqli_queries0.089268.53651410.0006
Looping result0.00100.77891390.0000
Template Total0.119792.010.1197
Template load0.00100.759610.0010
Template processing0.118791.208810.1187
Override
Cache load0.00070.573810.0007
Sytem overhead
Fetch class attribute can translate value0.00070.531510.0007
XML
Image XML parsing0.00030.233510.0003
General
dbfile0.00493.7652200.0002
String conversion0.00000.003830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs