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

@@ -97,10 +97,12 @@ namespace Volian.Controls.Library
#region Constructors
private Timer _RefreshTimer;
private ItemInfo _ItemInfo;
public DSOTabPanel(DocumentInfo documentInfo, DisplayTabControl myDisplayTabControl, ItemInfo itemInfo)
private bool _AllowedToEdit;
public DSOTabPanel(DocumentInfo documentInfo, DisplayTabControl myDisplayTabControl, ItemInfo itemInfo, bool allowedToEdit)
{
_MyDisplayTabControl = myDisplayTabControl;
_ItemInfo = itemInfo;
_AllowedToEdit = allowedToEdit;
InitializeComponent();
SetupDSOTabPanel();
_MyDocumentInfo = documentInfo;
@@ -541,7 +543,7 @@ namespace Volian.Controls.Library
if (IsDirty)
{
// Unfortunately, the only way to handle view mode for DSO Framer is to not save.
if (PanelViewEditMode == E_ViewMode.View)
if (PanelViewEditMode == E_ViewMode.View || !_AllowedToEdit)
{
MessageBox.Show("Currently in VIEW mode,\r\n cannot Save " + _MyDisplayTabItem.Tooltip);
return false;