B2020-114 Fixed crash when Set Admin clicked on the Links button.
C2020-035 Don’t allow Set Admin run Repair tools and show only folders associated with Set Admin for the update Transition and RO links 2020-034 Don’t show Format and Security options for Set Amin users, disable Admin button for all other users.
This commit is contained in:
@@ -1578,7 +1578,7 @@ namespace VEPROMS
|
||||
Volian.Base.Library.VlnItextFont.RegisterPromsFonts();
|
||||
InitializeSecurity();
|
||||
UpdateUser();
|
||||
btnSecurity = new ButtonItem("btnSecurity", "Security"); // C2019-002: move security & format items into submenus
|
||||
btnSecurity = new ButtonItem("btnSecurity", "Security"); // C2019-002: move security & format items into submenus
|
||||
btnFormats = new ButtonItem("btnFormats", "Formats");
|
||||
btnAdmin.SubItems.Add(btnSecurity);
|
||||
btnAdmin.SubItems.Add(btnFormats);
|
||||
@@ -1648,6 +1648,11 @@ namespace VEPROMS
|
||||
btnUpdateFormats.Visible = isVisible;
|
||||
btnResetSecurity.Visible = isVisible;
|
||||
btnAdministrativeTools.Visible = isVisible || HasSetAdministrator(MyUserInfo);
|
||||
// C2020-034 hide the Formats and Security buttons if user is a Set Administrator
|
||||
// if use is not an Administrator or Set Administrator then disable the Administrator button
|
||||
btnFormats.Visible = isVisible;
|
||||
btnSecurity.Visible = isVisible;
|
||||
btnAdmin.Enabled = isVisible || HasSetAdministrator(MyUserInfo);
|
||||
tmrCloseTabItems = new Timer();
|
||||
tmrCloseTabItems.Interval = 100;
|
||||
tmrCloseTabItems.Tick += new EventHandler(tmrCloseTabItems_Tick);
|
||||
@@ -3733,7 +3738,6 @@ namespace VEPROMS
|
||||
// Enable/disable the New button based on the user's security settings at the current folder level
|
||||
// B2015-193
|
||||
btnNew.Enabled = UserInfo.CanCreateFolders(MyUserInfo, fi);
|
||||
if (!btnNew.Enabled) return; // just return, user cannot add a new folder or workingdraft
|
||||
|
||||
// if at top, 'VEPROMS', folder and childfolders below this only
|
||||
// option is to create a new (sub)folder, i.e. no submenu items.
|
||||
|
Reference in New Issue
Block a user