• Restrict or Hide "Restore" Button From Group

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #40898  by alexwgordon
 
Hi All!

I had a question regarding the ability to "restore" past revisions of a document. I want to restrict this capability only to a specified group of users. Is this possible to achieve? I see in the Profiles that you can hide the History tab and you can hide the "View" button. But I didn't see anywhere to actually restrict the use of the "restore" button. Thanks guys!
 #40907  by jllort
 
Should be modify the source code and add into the profiles this control. If you have Java skills I can give you the clues for it.
 #40924  by jllort
 
First add at administration, you should see theseclasses:

* com.openkm.dao.bean.Profile
* com.openkm.dao.beanProfileMisc ( I suggest add here the new configuration property )
* com.openkm.servlet.admin.ProfileServlet
* profile_misc.jsp

Now for get some effect on User Interface:

* com.openkm.servlet.frontend.WorkspaceServlet
* com.openkm.frontend.client.bean.GWTWorkspace
* com.openkm.frontend.client.util.WorkspaceUserProperties ( you should call a new method showRestoreButton(), see for example line 160 )
* com.openkm.frontend.client.widget.properties.version.VersionScrollTable ( here should be implemented the showRestoreButton() )

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.