Function Limitiation in 4.0 what does Group do?

Author Message

Nathan Kelly

Thursday 17 April 2008 6:50:02 pm

Hi All,

I'm setting up some user roles in my new project and I have noticed there is a new function limitation on certain modules called Group with the options "Any" and "Self".

What does this option actually do? I have been trying to test it to see what it actually does but I can't tell if it is being implemented or not, its got me quite confused, I checked the docs and there is no mention of this new option:

http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/access_control

My initial thoughts were that it restricted the function to the group the user belongs to, for example:

I expected that if User 1 in GroupA creates an article and this Group limitation is set to self on the content read function for the section or node that the article was created in, then only users in Group A would be able to read the article and users in other groups would be denied. Am I understanding this correctly?

Can someone shed some light on this for me? If my understanding is on track then this new option would appear to be something I would personally find very useful but at this stage I'm not sure how to use it.

Cheers
Nathan.

Pardon me while I burst into flames...

Maxime Thomas

Thursday 17 April 2008 10:57:45 pm

Self means that if you are the creator of the content you will be the only one to be able to modify it.
It is the same behavior thant your post in this forum. You are only able to modify your post.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Nathan Kelly

Thursday 17 April 2008 11:09:56 pm

Hi Maxime,

I understand what "self" does when its used on the "Owner" option of the function limitation, what I don't know is what does the "Group" option do? This option doesn't exist on my 3.8.x installs but it does exist on my 4.0.0 install.

Cheers.

Pardon me while I burst into flames...

Maxime Thomas

Sunday 20 April 2008 11:01:40 am

Ok, I haven't get it the first time.

So after, some thoughts, I think it is what you said.

The owner group can only see this content because they are in the same group.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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 30 2025 21:28:45
Script start
Timing: Jan 30 2025 21:28:45
Module start 'layout'
Timing: Jan 30 2025 21:28:45
Module start 'content'
Timing: Jan 30 2025 21:28:45
Module end 'content'
Timing: Jan 30 2025 21:28:45
Script end

Main resources:

Total runtime0.0295 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.2656151.2266
Module start 'layout' 0.00680.0046 739.4922220.7344
Module start 'content' 0.01140.0164 960.22661,001.8359
Module end 'content' 0.02780.0017 1,962.062537.9922
Script end 0.0295  2,000.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00289.4024140.0002
Check MTime0.00113.5818140.0001
Mysql Total
Database connection0.00062.158010.0006
Mysqli_queries0.004816.123430.0016
Looping result0.00000.046810.0000
Template Total0.00124.110.0012
Template load0.00093.187710.0009
Template processing0.00030.847210.0003
Override
Cache load0.00062.120810.0006
General
dbfile0.00154.962080.0002
String conversion0.00000.020240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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