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.

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 05:20:02
Script start
Timing: Jan 18 2025 05:20:02
Module start 'layout'
Timing: Jan 18 2025 05:20:02
Module start 'content'
Timing: Jan 18 2025 05:20:03
Module end 'content'
Timing: Jan 18 2025 05:20:03
Script end

Main resources:

Total runtime1.1444 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.0068 589.3047152.6563
Module start 'layout' 0.00680.0040 741.960939.5156
Module start 'content' 0.01081.1324 781.4766614.5703
Module end 'content' 1.14320.0012 1,396.046912.0938
Script end 1.1444  1,408.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3251160.0002
Check MTime0.00170.1450160.0001
Mysql Total
Database connection0.00080.065910.0008
Mysqli_queries1.085694.8614650.0167
Looping result0.00070.0595630.0000
Template Total1.106396.720.5531
Template load0.00220.194820.0011
Template processing1.104096.471720.5520
Template load and register function0.00010.007010.0001
states
state_id_array0.00580.507910.0058
state_identifier_array0.00200.176620.0010
Override
Cache load0.00190.1649260.0001
Sytem overhead
Fetch class attribute can translate value0.00090.081430.0003
Fetch class attribute name0.00190.168580.0002
XML
Image XML parsing0.00160.139530.0005
class_abstraction
Instantiating content class attribute0.00000.0016100.0000
General
dbfile0.00100.0878310.0000
String conversion0.00000.001040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs