Forums / Developer / User policy troubles...

User policy troubles...

Author Message

Nicklas Lundgren

Monday 10 November 2003 1:25:57 pm

Hi,
I must admit - the user rights part of ez is over my head. At least for the time being.

I have an editor role, specifying access to content * * and user login *.

Can someone please explain why this role allows adding/editing/deleting users??

Does someone have any idea about how to limit the editors access to the user-area of the admin-interface?

Any help appreciated!

Regards
Nicklas Lundgren,
Sweden

Eirik Alfstad Johansen

Tuesday 11 November 2003 2:05:39 am

Hi Nicklas,

Users are a class belonging to the content module. So, when you have unlimited access to this module (content * *), you will be able to edit content objects of all classes. If you were to give a role access to just the users class, you would choose the content module in step 1, select limited access, and further down the road, choose the users class.

Hope that makes sense !

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Nicklas Lundgren

Tuesday 11 November 2003 2:04:46 pm

Alright, Eirik.
Thanks for your reply, now I begin to understand this!
Actually I now have managed to restrict the editors access.

If I may, I have a follow-up on the same subject:

I am building a multisite solution on one eZPublish installation.
I am using sections to separate the different sites.
By assigning the editor-role to a certain section it would be possible to restrict editors from accessing the rootnode in the contentmodule.
But the admin-interface always starts in the /content/view/full/2/
which then the editor has no access to.

I have tried changing this by altering RootNode in content.ini.append, to no avail.

I guess I could code it manually. But it seems like a bad idea.

Any suggestions appreciated,

Regards,
Nicklas Lundgren

Lachy Laycock

Tuesday 25 November 2003 1:39:35 am

I am also interested in getting RootNode to work.
[re: http://ez.no/developer/ez_publish_3/forum/developer/setting_rootnode_and_userrootnode/re_setting_rootnode_and_userrootnode ]

Should a bug be submitted for this?

eZ debug

Timing: Jan 18 2025 15:55:56
Script start
Timing: Jan 18 2025 15:55:56
Module start 'content'
Timing: Jan 18 2025 15:55:57
Module end 'content'
Timing: Jan 18 2025 15:55:57
Script end

Main resources:

Total runtime0.9142 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.7422180.8438
Module start 'content' 0.00510.7248 769.5859585.3828
Module end 'content' 0.72980.1843 1,354.9688333.3984
Script end 0.9141  1,688.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3855210.0002
Check MTime0.00130.1430210.0001
Mysql Total
Database connection0.00050.059010.0005
Mysqli_queries0.843192.21451990.0042
Looping result0.00200.21691970.0000
Template Total0.889297.320.4446
Template load0.00190.205720.0009
Template processing0.887397.053420.4436
Template load and register function0.00010.014110.0001
states
state_id_array0.00100.107610.0010
state_identifier_array0.00090.097120.0004
Override
Cache load0.00160.1747400.0000
Sytem overhead
Fetch class attribute can translate value0.00110.118240.0003
Fetch class attribute name0.00110.116850.0002
XML
Image XML parsing0.00100.111640.0003
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00380.4120270.0001
String conversion0.00000.000430.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs