How to view all archived items in sitecore 6

有些话、适合烂在心里 提交于 2019-12-08 01:31:49

问题


i'm using Sitecore 6.5. I have 2 users that have the exact same role, say user A and user B.

When i archived an item with user A, i can see the archived item in the user A archive manager but not in user B.

How do i give access to the users so that they can see all archived items from all users without setting them as admin ?


回答1:


The archive application is using the Sitecore.Data.Archiving.SqlArchive.GetEntries method to retrieve the archived items from the database and it filters the items by the current user (using the ArchivedBy field) unless the current user is an administrator.

So to allow everyone to see every archived item you would have to create your own implementation of the GetEntries(User user, int pageIndex, int pageSize, ID archivalId) method. Simplest way might be to create a new Advanced System Reporter report and then override the SqlArchive.GetEntries method and pass in null as the user as that has the same effect as an administrator.



来源:https://stackoverflow.com/questions/13557458/how-to-view-all-archived-items-in-sitecore-6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!