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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user