send MyUserInfo (security) to the TreeView module

Don’t allow Reviewers and RO Editor only users save changes to Word attachments and library documents
Put a Create PDF button on the Review ribbon
Don’t allow Reviewers and RO Editor only users move procedures and folders on the tree
This commit is contained in:
2016-01-21 19:30:35 +00:00
parent f3b86f2a46
commit ea9e0831c8
6 changed files with 264 additions and 191 deletions

View File

@@ -298,7 +298,8 @@ namespace Volian.Controls.Library
private void SetupDSOTabPanel()
{
EntryInfo myEntry = _MyItemInfo.MyContent.MyEntry;
_MyDSOTabPanel = new DSOTabPanel(myEntry.MyDocument, _MyDisplayTabControl, _MyItemInfo);
UserInfo ui = UserInfo.GetByUserID(OwnerInfo.Get(OwnerID).SessionUserID);
_MyDSOTabPanel = new DSOTabPanel(myEntry.MyDocument, _MyDisplayTabControl, _MyItemInfo, UserInfo.CanEdit(ui,MyItemInfo.MyDocVersion));
//
// tabItem
//
@@ -322,7 +323,8 @@ namespace Volian.Controls.Library
}
private void SetupLibraryDocumentDSOTabPanel()
{
_MyDSOTabPanel = new DSOTabPanel(_MyDocumentInfo, _MyDisplayTabControl, _MyItemInfo);
UserInfo ui = UserInfo.GetByUserID(OwnerInfo.Get(OwnerID).SessionUserID);
_MyDSOTabPanel = new DSOTabPanel(_MyDocumentInfo, _MyDisplayTabControl, _MyItemInfo, UserInfo.CanEdit(ui, MyItemInfo.MyDocVersion));
//
// tabItem
//