Forums / Setup & design / Roles and user 'drafts' help needed.

Roles and user 'drafts' help needed.

Author Message

Tony Wood

Tuesday 08 April 2003 3:38:58 am

Hi,

Issue:
Can you please let me know how i allow editors access to drafts?

Context:
Editor need to have access to edit content elements, If you give them the role permissions 'Content * *' all works fine but this also give editors access to read/amend/delete/version read other users.
So we use the limited role so you set the rights for Content so that it does not allow access to 'users' and 'user groups'.

Problem:
The problem with cutting down access like this is that you cannot allow access to 'draft' items. The draft items appear not to be available, Maybe 'drafts' are missing from the cotnent fnction list in roles?

Is there are way of achiveing what i want?

tia

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Tony Wood

Friday 11 April 2003 7:56:55 am

Has nobody else tried to lock down editors so they cannot see other users details?

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Bruce Morrison

Monday 14 April 2003 3:48:06 pm

Hi Tony

I came across this issue in RC2 and reported it via our support agreement. I was informed it was a bug. Unfortinually I didn't add it to the bug system (which I see you have) and I guess it slipped through the cracks. Definately one I'd like to see a fix for.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Brendan Pike

Monday 14 April 2003 6:58:01 pm

I've also been experiencing this issue, I also thought it was possible to allow editors to create other editors but I haven't been able to acheive this without also giving editors the right to create full admins.

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Tony Wood

Tuesday 22 April 2003 1:50:33 am

Thanks for the feedback, I thought it was just me for a while :)

Any news from the eZ team?

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Sergiy Pushchin

Tuesday 22 April 2003 6:24:23 am

To fix proplem with drafts you need to add new line at kernel/content/module.php line 194.
"functions" => array( 'create' ),
after that modification user will be able to access draft if he is able to create smth. So to gave user access to his drafts you need to allow him to create smth.

Sergiy Pushchin

Tuesday 22 April 2003 6:30:46 am

To achieve this,
1. Create section called "Editor users section" or however you want to call it. and assign it to usergroup in which you have editors placed.
After that create policy for editors role which looks like this one:
content - create - Class( User),Section(Editor users section), ParentClass(User group)
I think this will solve problem.

Tony Wood

Tuesday 22 April 2003 6:42:40 am

Thanks for this... I had everything setup for Editors but had added an extra "Content * *" I removed this and made the patch you posted and it works well now

Thanks :)

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Jonny Bergkvist

Wednesday 23 April 2003 4:28:17 am

I have tried to make a section for this purpose, but when I try to assign the section to a user-group I run into problems, because I can only browse in the normal folders-structure. The user-groups are hidden from section->assign.

Have I forgotten anything?

Jonny Bergkvist

Tony Wood

Wednesday 23 April 2003 4:43:26 am

If i understand correctly, I think you need to use Roles to define what areas users have access to.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Sergiy Pushchin

Wednesday 23 April 2003 4:59:43 am

There is a hidden fiture (actually a bug). When you go to browse page you need to change '2' in url to '5' which is top level node for users. After that you browse users not coontent.

Bruce Morrison

Wednesday 23 April 2003 4:52:44 pm

> To fix proplem with drafts you need to add new line at
> kernel/content/module.php line 194.
> "functions" => array( 'create' ),

OK I added this ...

> after that modification user will be able to access draft if he is able to
>create smth. So to gave user access to his drafts you need to allow
> him to create smth.

I take it that I have to add a permission to the role the user belongs to. But what is "smth"????

Can you please give an example of the permission that is required?

Thanks
bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Sergiy Pushchin

Thursday 24 April 2003 1:26:34 am

smth. is something.
If role has one policy that allows to call create function, it will give user access to the drafts.
content-create-Class( Folder )
or
content-create-*
content-create-ParentClass(Folder),Class(Article)

--SP

eZ debug

Timing: Jan 18 2025 02:06:21
Script start
Timing: Jan 18 2025 02:06:21
Module start 'content'
Timing: Jan 18 2025 02:06:22
Module end 'content'
Timing: Jan 18 2025 02:06:22
Script end

Main resources:

Total runtime1.4401 sec
Peak memory usage4,096.0000 KB
Database Queries230

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.7344180.8281
Module start 'content' 0.00581.2315 768.5625791.8750
Module end 'content' 1.23730.2027 1,560.4375357.3359
Script end 1.4400  1,917.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.2819210.0002
Check MTime0.00140.0989210.0001
Mysql Total
Database connection0.00080.057710.0008
Mysqli_queries1.330192.35862300.0058
Looping result0.00270.18832280.0000
Template Total1.412398.120.7061
Template load0.00210.143720.0010
Template processing1.410297.924320.7051
Template load and register function0.00010.008510.0001
states
state_id_array0.00110.074610.0011
state_identifier_array0.00210.148920.0011
Override
Cache load0.00190.1349790.0000
Sytem overhead
Fetch class attribute can translate value0.00180.123060.0003
Fetch class attribute name0.00140.0959170.0001
XML
Image XML parsing0.00400.278760.0007
class_abstraction
Instantiating content class attribute0.00000.0033250.0000
General
dbfile0.00560.3883450.0001
String conversion0.00000.000330.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
12content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
13content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 56
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs