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.

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 10:26:41
Script start
Timing: Jan 18 2025 10:26:41
Module start 'layout'
Timing: Jan 18 2025 10:26:41
Module start 'content'
Timing: Jan 18 2025 10:26:41
Module end 'content'
Timing: Jan 18 2025 10:26:41
Script end

Main resources:

Total runtime0.0162 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.0156152.6250
Module start 'layout' 0.00710.0025 740.640639.4453
Module start 'content' 0.00960.0047 780.085993.2422
Module end 'content' 0.01430.0019 873.328138.3047
Script end 0.0162  911.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.7507140.0002
Check MTime0.00116.7256140.0001
Mysql Total
Database connection0.001911.967810.0019
Mysqli_queries0.002314.384630.0008
Looping result0.00000.086710.0000
Template Total0.00169.710.0016
Template load0.00085.037910.0008
Template processing0.00084.667510.0008
Override
Cache load0.00063.478210.0006
General
dbfile0.00021.286380.0000
String conversion0.00000.047040.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