Pass UserInfo (for security settings) to DisplayRO and StepTabRibbon

Check to see if the use is allowed to run the RO Editor before enabling the GoToRO button.
If an RO is selected in the text, the check to see if the user is allowed to run the RO Editor before enabling the GoTo button on the ribbon and context menu button, as well as enabling the <Shift><Ctrl><G> keystroke.
This commit is contained in:
2015-07-30 14:18:55 +00:00
parent 1ebe496589
commit 28a3a99c50
3 changed files with 36 additions and 3 deletions

View File

@@ -1039,6 +1039,8 @@ namespace VEPROMS
ui = UserInfo.Get(u.UID);
}
ctrlAnnotationDetails.MyUserInfo = ui;
DisplayRO.MyUserInfo = ui; // set the user's security information in the properties RO panel
StepTabRibbon.MyUserInfo = ui; // set the user's security information in the ribbon
bool isVisible = ui.IsAdministrator();
btnManageSecurity.Visible = isVisible;
btnUpdateFormats.Visible = isVisible;