B2108-112 Use IsAllowedToEdit in call to SetButtonEnablingForEnhanced() so that a reviewer cannot toggle out of View mode, and cannot delete from the context menu.

B2018-112 Added IsAllowedToEdit method for use in setting up the menu and context menu items
This commit is contained in:
2018-08-08 15:23:38 +00:00
parent 59946e12b3
commit 4ad9fd65bf
2 changed files with 7 additions and 2 deletions

View File

@@ -1232,6 +1232,11 @@ namespace VEPROMS.CSLA.Library
}
return false;
}
// B2018-112 added for easy check if user's PROMS Security allows making edits - used in StepTabRibbon - SetButtonAndMenuEnabling()
public bool IsAllowedToEdit(DocVersionInfo dvi)
{
return IsAdministrator() || IsSetAdministrator(dvi) || IsWriter(dvi);
}
public static UserInfo GetByUserID(string userID)
{
try