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