Forums / Developer / grant permission to editor user grop to access hidden nodes

grant permission to editor user grop to access hidden nodes

Author Message

Romeo Antony

Monday 27 September 2010 6:02:49 am

anyone knows which policy should set to grant permission to access hidden ndoes?

romeo

Peter Keung

Monday 27 September 2010 7:23:15 am

There is no such policy. Showing hidden nodes is controlled at the siteaccess level with this setting:

[SiteAccessSettings]
ShowHiddenNodes=true

Depending on your reason for wanting to show hidden nodes, you can either create a separate siteaccess with only that setting being different (and then don't let anonymous users view that siteaccess), or control access to such nodes via a different method that's compatible with the permission system within the same siteaccess -- state, subtree, section, or similar.

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Quoc Huy Nguyen Dinh

Tuesday 28 September 2010 8:02:17 am

Agree with Peter.

I used to do this by creating a "Hidden" section, assign it to node/subtree to be hidden instead of using the Hide/Reveal feature. Then add permission to a particular group of editors so that they can view nodes from the "Hidden" section once logged-in.

Romeo Antony

Wednesday 29 September 2010 4:42:57 am

Thank Peter and Dinh . I got it done. I was curious is there any way i can do like grating permission to hidden nodes. Ok. Got it.

Quoc Huy Nguyen Dinh

Monday 04 October 2010 3:45:50 am

If you really need to use granting permissions without using sections there is a workaround.

You could create a new role and or maybe user group and in the templates, you check if the user has the permission or member of the group and then use the 'ignore_visibility' fetch parameter: http://doc.ez.no/Extensions/eZ-Find/2.1/Customization/Template-fetch-functions#Ignore_visibility

But this is more a pain as you will need to do this for all fetch calls your website is doing. Whereas the section solution applies to all.

eZ debug

Timing: Jan 30 2025 00:18:44
Script start
Timing: Jan 30 2025 00:18:44
Module start 'content'
Timing: Jan 30 2025 00:18:44
Module end 'content'
Timing: Jan 30 2025 00:18:44
Script end

Main resources:

Total runtime0.2166 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.0069 589.3203180.8047
Module start 'content' 0.00690.0174 770.125098.0859
Module end 'content' 0.02430.1922 868.2109525.8438
Script end 0.2165  1,394.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00381.7331200.0002
Check MTime0.00140.6516200.0001
Mysql Total
Database connection0.00060.289010.0006
Mysqli_queries0.147368.01991410.0010
Looping result0.00110.50411390.0000
Template Total0.191888.510.1918
Template load0.00090.429910.0009
Template processing0.190888.115410.1908
Override
Cache load0.00060.296510.0006
Sytem overhead
Fetch class attribute can translate value0.00090.401310.0009
XML
Image XML parsing0.00030.126910.0003
General
dbfile0.028413.0997200.0014
String conversion0.00000.002230.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.0002 secs