Forums / Developer / Different ower/heirarchy setup needed

Different ower/heirarchy setup needed

Author Message

Peter Bailey

Thursday 17 April 2003 9:19:06 am

Okay, I'm needing to accomplish the following. First, let's start with what I have now. A certan user class I've made (let's call it myUser) can create content in certain Sections, and can edit only content they own. This works fine.

Now, when I need is for multiple users of the myUser class to access any content than any other user of the myUser class created provided the two users belong to the same Company (let's call that class myCompany)

So, what seems to me what needs to be done is this. The myCompany class will hold all the myUser objects that belong to that company. Any content created by those users will become owned by the company, so they each have access to eachother's content.

Making sense?

Either the above solution, or I need to be able to create a different option to bind policy restrictions to the owner other than the existing "any" and "self" options.

Or maybe I need both ?

Gabriel Ambuehl

Friday 18 April 2003 7:52:49 am

What's wrong with user groups and adding them to the role that covers editing of a given section?

(maybe I didn't really understand you're problem, this seems awfully obvious ;-)

Visit http://triligon.org

Peter Bailey

Friday 18 April 2003 8:47:43 am

Yes, but unless I'm mistaken, that won't help my content-ownership problem. I can restrict editing to ANY owner in a given section, but I don't want to have to create a new section for each company. Not only would that be a hassle, but I just feel that's the wrong way to go about things.

What I need to do is restrict editing/access to any user that's in the same company. The role-policy systems doesn't provide an interface to allow me to restrict access by the user's group. The restriction setup (for editing) is as follows

Content-Class >> Section >> Owner

the way I see it, in the existing role system, I need to be able to specify a different owner other than "Any" or "Self"

Gabriel Ambuehl

Friday 18 April 2003 9:42:40 am

It would think it is perfectly sane to have a different section for each company?

In fact, if I were the customer I wouldn't particularly like it to even be on the same installation than my competitor. Imagine what happens if there is permission fuck up somewhere... But as always, YMMV.

Visit http://triligon.org

Peter Bailey

Monday 21 April 2003 10:14:49 am

Okay, unless I can wrap my brain around this situation in a more efficient manner, creating a new section and associated roles for each new company seems like a terrible headache (this would need to be done automatically, not babysat by an admin)

I'd much rather have pre-defined sections and roles that apply to each company. Really, what I need to be able to do is change ownership of content to the user-group (or a custom class that's like a group)

Sergiy Pushchin

Wednesday 23 April 2003 1:04:43 am

The only way for now to achieve this for now is sections. You can automate some things with workflows. I think in 3.1 will come a possibility to create limitations to the subtree in that case you scenario will be easier to build.

eZ debug

Timing: Jan 18 2025 03:08:22
Script start
Timing: Jan 18 2025 03:08:22
Module start 'content'
Timing: Jan 18 2025 03:08:23
Module end 'content'
Timing: Jan 18 2025 03:08:23
Script end

Main resources:

Total runtime0.9824 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1641180.8281
Module start 'content' 0.00530.8507 769.9922602.0078
Module end 'content' 0.85600.1264 1,372.0000337.0547
Script end 0.9824  1,709.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4021210.0002
Check MTime0.00150.1500210.0001
Mysql Total
Database connection0.00070.071510.0007
Mysqli_queries0.911292.75122050.0044
Looping result0.00190.19162030.0000
Template Total0.954997.220.4774
Template load0.00230.231620.0011
Template processing0.952696.960220.4763
Template load and register function0.00020.019410.0002
states
state_id_array0.00100.100410.0010
state_identifier_array0.00120.121020.0006
Override
Cache load0.00200.2063260.0001
Sytem overhead
Fetch class attribute can translate value0.00140.139240.0003
Fetch class attribute name0.00110.112670.0002
XML
Image XML parsing0.00110.109140.0003
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00400.4107270.0001
String conversion0.00000.000630.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
6content/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs