Howto remove drafts and archived versions from an object in admin

Author Message

K259

Thursday 04 March 2004 3:42:43 am

How do I assign rights to users so they can delete their versions?

I've given all rights on versions-module to the users, but it won't help.
Are there any doc on this?

Another question regarding versions:
In content.ini the DefaultVersionHistoryLimit=15 and VersionHistoryClass[1]=5...what does the last "thing" mean? VersionHistoryClass[1]=5? Don't find any doc on this either.

The users now only get a warning when they edit their content:
"Could not make new version.The limit for versionhistory is exceeded, og no archived versions can be removed by the system".

The best thing the system SHOULD do then, was to delete the oldest version, so the user still could edit his/her content, and not just deny access for editing the published version.

Wenyue Yu

Friday 05 March 2004 4:31:55 am

Hi,

You need to have
content remove Owner( Self )
content versionread Owner( Self )
to delete versions.

VersionHistoryClass[1]=5 means that for class 1 ( folder in standard eZ publish ), the maximum exising version amount is 5.

The system will try to delete the oldest archived version if it can't create a new version. If you got waring "Could not make new version.The limit for versionhistory is exceeded, og no archived versions can be removed by the system", then the system cann't find archived version. Since it is not a good choice to delete a draft ( maybe belongs to other user), the system will issue the warning and let user to deceide to delete which draft.

Regards,
wenyue

K259

Friday 05 March 2004 4:47:35 am

Hi!

I got the role-settings perfect:
content remove Section( xxx ) , Owner( Self )
content versionread Section( xxx )

BUT: the user in this role still don't get the checkbox for deleting
versions in versionadministration. That's our problem. So I(the admin) have to log in, and delete the versions for them, when they get the error message when the limit is
exceeded. I can increase the limit in settings, but don't want to have
to many versions in the system...so is this a BUG?

I think the best solution would be if there are no more archived versions, then start to delete the drafts. It's very CRITICAL when the user is not able to edit and publish their content, and also don't have the rights(because of a bug) to delete the versions.
What kind of publishing-society is that, hehe :p A very strict one ;)
"Your version history is exceeded, so you don't have any more credit to publish" ;)

Best regards.

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 19 2025 01:24:08
Script start
Timing: Jan 19 2025 01:24:08
Module start 'layout'
Timing: Jan 19 2025 01:24:08
Module start 'content'
Timing: Jan 19 2025 01:24:09
Module end 'content'
Timing: Jan 19 2025 01:24:09
Script end

Main resources:

Total runtime0.8412 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 590.5469152.6563
Module start 'layout' 0.00670.0027 743.203139.5234
Module start 'content' 0.00940.8298 782.7266479.4922
Module end 'content' 0.83920.0020 1,262.218812.0938
Script end 0.8412  1,274.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4185160.0002
Check MTime0.00150.1776160.0001
Mysql Total
Database connection0.00120.143410.0012
Mysqli_queries0.791294.0548570.0139
Looping result0.00060.0731550.0000
Template Total0.808096.020.4040
Template load0.00220.263720.0011
Template processing0.805795.778920.4029
Template load and register function0.00030.031510.0003
states
state_id_array0.00150.175110.0015
state_identifier_array0.00140.163420.0007
Override
Cache load0.00180.2148350.0001
Sytem overhead
Fetch class attribute can translate value0.00070.085620.0004
Fetch class attribute name0.00150.177530.0005
XML
Image XML parsing0.00020.027920.0001
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00090.1050100.0001
String conversion0.00000.000940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 5

Time used to render debug report: 0.0001 secs