Forums / Developer / Malfunc in assign limited?

Malfunc in assign limited?

Author Message

Eivind Marienborg

Wednesday 06 April 2005 8:14:58 am

I'm having problems with the assign limited on subtree function.

<b>This is my setup:</b>

<b>Content structure</b>
- Folder1
-- forums, public
- Folder2
-- forums, public
- Folder3
-- forums, restricted access

<b>User groups</b>
My logged in users are placed in different groups. Based on which groups they belong to, they are supposed to have access to different forums inside Folder3.

<b>Roles</b>
I have set this up using assing limited on subtree on this forum policy:

 content  	 read  	 Class( Folder , Folder , Forum , Forum topic , Forum reply ) , Section( Forum )
content 	create 	Subtree( Forum ) , Class( Forum topic , Forum reply ) , Section( Forum )
content 	edit 	Class( Forum topic , Forum reply ) , Owner( Self )

<b>Assign limited</b>
I have assigned this to all users on Folder1 and Folder2. Each user group then gets assigned limited by subtree on their own forum in Folder3.

<b>Result/Problem</b>
All users see forums in Folder1 and Folder2, as they're supposed to. When entering Folder3 they only see the forums they're supposed to. So far, all good.

But when entering the URL to a restricted forum directly, there's no restrictions. No 'No access' message is displayed. In stead it looks like an empty forum, where no topics and no replies have been submitted.

When entering a forum topic directly by URL the same happens. The user can see the forum topic, but no forum replies. The same thing goes for entering the URL directly to forum replies.

The strangest thing is that the user even is allowed to create new forum topic (in forum view) and forum replies (in forum topic view), but won't see it appear after submitting it!

I've thought about posting this as a bug, but want to make sure I'm not just misunderstanding something in the setup of Assing Limited first. Anyone else has experience with this? Any ideas for fixing it?

eZ debug

Timing: Jan 18 2025 19:22:52
Script start
Timing: Jan 18 2025 19:22:52
Module start 'content'
Timing: Jan 18 2025 19:22:53
Module end 'content'
Timing: Jan 18 2025 19:22:53
Script end

Main resources:

Total runtime0.9621 sec
Peak memory usage4,096.0000 KB
Database Queries183

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.8281180.8359
Module start 'content' 0.00630.7708 769.6641453.1172
Module end 'content' 0.77720.1849 1,222.7813333.0625
Script end 0.9621  1,555.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4357210.0002
Check MTime0.00150.1602210.0001
Mysql Total
Database connection0.00060.062710.0006
Mysqli_queries0.884591.92771830.0048
Looping result0.00200.20511810.0000
Template Total0.933197.020.4665
Template load0.00180.182220.0009
Template processing0.931396.796920.4657
Template load and register function0.00010.011210.0001
states
state_id_array0.00200.204510.0020
state_identifier_array0.00090.095220.0005
Override
Cache load0.00140.1470260.0001
Sytem overhead
Fetch class attribute can translate value0.00140.140920.0007
Fetch class attribute name0.00120.127820.0006
XML
Image XML parsing0.00080.079020.0004
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00190.2004270.0001
String conversion0.00000.000530.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/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/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs