Forums / Developer / Version-problems(how to delete)

Version-problems(how to delete)

Author Message

K259

Monday 30 August 2004 3:41:28 am

Our users have big problems with maximum numbers of versions of an object is reached.
I've checked the permissions-settings, and the usergroup has the proper permission for versionread. BUT, which grant shall be given to give the user the right to delete the versions, when the max-number is reached?...Now the admin-user has to go in for every user and delete versions, because the users don't get the possibillity to delete earlier versions.

I thought eZ publish automatically deleted the oldest version if the max-number was reached..but not.

Urgent advices is needed.

Gurudutt Verma

Wednesday 01 September 2004 5:05:38 am

Hi
Have a look in the file <b>settings/content.ini</b>
and change the <b>DefaultVersionHistoryLimit</b>
[VersionManagement]
DefaultVersionHistoryLimit=5

This setting show that ezcontentobject_version table will store only latest five versions of object and all versions older than 5 will be deleted automatically.
You can also set this limit to particular class by setting <b>VersionHistoryClass[1]</b>
I guess this should work.

K259

Wednesday 01 September 2004 12:08:14 pm

Yes I know, but what access does a user need to edit the version-history list and delete a version? Our users got content-remove from all objects they (self) created, but are not able to delete the versions anyway.

Kåre Køhler Høvik

Tuesday 07 September 2004 5:57:43 am

The problem you describe is caused by users having more drafts than they're allowed. A fix for this has been added to trunk rev. 7880. ( 3.5 )

Kåre Høvik