Attribute Level Permissions

Author Message

Jani Tarvainen

Tuesday 23 November 2010 9:22:20 pm

Any chances of getting permissions to include attribute level permissions in the future?

--
http://ezpublish.fi/

Nicolas Pastorino

Tuesday 23 November 2010 11:16:44 pm

HI Jani !

Do you mean being able to restrict (read) access to not only a content class, but a set of attributes in a given content class ?

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Jani Tarvainen

Wednesday 24 November 2010 3:02:39 am

Yes exactly. I'd like to set permission per an attribute (or a certain group of attributes).

I suppose this could be done with a custom module at the moment (that'd take the input, create a new draft of the published version and only update certain fields). But I'd rather have it as a core functionality.

It's been discussed before: http://share.ez.no/forums/setup-design/is-it-possible-to-edit-only-1-attribute-of-a-contentobject

--
http://ezpublish.fi/

Nicolas Pastorino

Wednesday 24 November 2010 7:24:33 am

I see the point. A workaround could be to use custom edit templates, showing only the authorized attributes for the current user (requires a custom module with functions and limitations on those, checked against when displaying the template through a custom operator), and maybe double check on this all with a custom edit handler in the back-end ?

Also, coupling this with the concept of 'Category' (per attribute in the class edition interface, one can choose a 'category' since 4.3 iirc) could improve usability fo rth eones configuring access control.

Have you spotted any related issue/request for enhancement there : http://issue.ez.no/ezpublish ? If not, filing one would be nice :)

Cheers !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

André R.

Thursday 25 November 2010 5:31:21 am

There is an issue on this, I think also with patch from Kristoff.

But as you say if we do put this on the roadmap then it would make sense to tie it up to the attribute groups instead of every singel attribute.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Nicolas Pastorino

Thursday 25 November 2010 6:15:35 am

"

There is an issue on this, I think also with patch from Kristoff.

"

Would you by chance have the link to this issue ?

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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 04:28:50
Script start
Timing: Jan 18 2025 04:28:50
Module start 'layout'
Timing: Jan 18 2025 04:28:50
Module start 'content'
Timing: Jan 18 2025 04:28:51
Module end 'content'
Timing: Jan 18 2025 04:28:51
Script end

Main resources:

Total runtime0.5696 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9141152.6250
Module start 'layout' 0.00620.0035 740.539139.4531
Module start 'content' 0.00970.5585 779.9922624.2500
Module end 'content' 0.56820.0014 1,404.242216.1641
Script end 0.5695  1,420.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.6467160.0002
Check MTime0.00150.2625160.0001
Mysql Total
Database connection0.00070.127110.0007
Mysqli_queries0.497487.3359680.0073
Looping result0.00090.1636660.0000
Template Total0.529392.920.2647
Template load0.00230.401720.0011
Template processing0.527092.528420.2635
Template load and register function0.00010.017210.0001
states
state_id_array0.00100.179610.0010
state_identifier_array0.00080.145920.0004
Override
Cache load0.00190.3410310.0001
Sytem overhead
Fetch class attribute can translate value0.00110.195430.0004
Fetch class attribute name0.00150.262590.0002
XML
Image XML parsing0.00140.246230.0005
class_abstraction
Instantiating content class attribute0.00000.0044120.0000
General
dbfile0.00140.2397290.0000
String conversion0.00000.001540.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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.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/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs