Forums / Developer / group and object permissions and ownership, comment it pls!

group and object permissions and ownership, comment it pls!

Author Message

M Desdin

Wednesday 23 April 2003 6:00:05 pm

we crashed against the actual ezp 3 implementation of permissions and ownership. we expose here some of them and ask for comments and help:
- total absence of object permissions and the ability of the object owner to change/set it
- no way to change the object ownership, possibly this could be gained with some extra coding, but can it be assigned to something different than a user? a group for example?
- ownerships during a role creation are restricted to self and any
- no group inheritance and consequently no permission (role) inheritance for them, i mean that a group beloging to/below another one doesn't inherit roles/permissions from the upper one. this behavior isn't ezp like!
are there any plans from ezp crew to improve the actual permissions/ownership implementation? how and when?
will it be difficult to try it by ourselves? please give us the necessary hints on this!
tia, md :)

Karsten Jennissen

Thursday 24 April 2003 4:22:34 am

Hi,

unfortunately I'm not an expert on permissions, but I think Volker Lenz wrote a comprehensive comment in the forums about a month or two ago on this topic. Couldn't find his post, though.

As far as your first two points are concerned, I am not sure whether you are aware of using sections to control object permissions. You can control permissions using site sections that can be arbitrarily assigned to nodes (objects too?). Anyway, the permission system is role based. Roles can be assigned to users and user groups. In the roles setup you can fine tune the permissions.

The others I give back to those who know something about that. :-)

Karsten

M Desdin

Thursday 24 April 2003 5:52:42 am

hi karsten,
no, there is no way to assign permissions to an object using sections, furthermore i don't see it as a desirable way under the actual role implementation.
let's expose a common example:
we build a site where users enter their personal data. we have groups and perhaps subgroups of them. we declare some sections and assign some roles to them. now some of these users decide to make their data belonging to the same class world readable, other users decide to make it group readable and the rest of them decide to make it only readable by themselves. think here of a unix like file permissions.
so, how do we approach the solution for this example? got it?
tia, md ;)

Karsten Jennissen

Thursday 24 April 2003 6:03:21 am

May be this thread'll help:

http://ez.no/developer/ez_publish_3/forum/setup_design/roles_and_user_drafts_help_needed

Karsten

Karsten Jennissen

Thursday 24 April 2003 6:11:47 am

Whoops, wrong thread. :)

http://ez.no/developer/ez_publish_3/forum/setup_design/multiple_sections_or_permissions

I am not sure how to do the complete thing or whether it is possible, as permissions are not set by those who create objects, but ony by those you have access to the roles function, afaik.

Karsten

M Desdin

Thursday 24 April 2003 7:32:52 am

hi karsten,
thanks again! i don't see how this thread can help me. his problem is only partly related to the hole permissions problem i exposed earlier and can be actually solved!
in your last post you are pointing just to another problem in the roles creation and assignment!
ezp crew???
tia, md

Paul Borgermans

Thursday 24 April 2003 8:59:53 am

> - total absence of object permissions and the ability of the object owner to change/set it

well, only roles for now

>- no way to change the object ownership, possibly this could be gained with some extra coding, but can it be assigned to something different than a user? a group for example?

Yes, here we may need some extra coding. And no it cannot be assigned to a group.

>- ownerships during a role creation are restricted to self and any

That's right and covers quite some practical situations

>- no group inheritance and consequently no permission (role) inheritance for them, i mean that a group beloging to/below another one doesn't inherit roles/permissions from the upper one. this behavior isn't ezp like!

I agree on that (inheritance of groups).

More power in the roles/permissions, means more overhead for server processing. But I would like to have the possibility too.

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

eZ debug

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

Main resources:

Total runtime0.1425 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.0042 588.1875180.7969
Module start 'content' 0.00420.0072 768.9844101.9766
Module end 'content' 0.01140.1310 870.9609531.1719
Script end 0.1424  1,402.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.3671200.0002
Check MTime0.00141.0172200.0001
Mysql Total
Database connection0.00060.418110.0006
Mysqli_queries0.092264.72481410.0007
Looping result0.00110.76901390.0000
Template Total0.130591.610.1305
Template load0.00090.651410.0009
Template processing0.129690.950210.1296
Override
Cache load0.00060.449910.0006
Sytem overhead
Fetch class attribute can translate value0.00060.396610.0006
XML
Image XML parsing0.00020.127810.0002
General
dbfile0.01117.7721200.0006
String conversion0.00000.002730.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.0001 secs