добавляет отключение кнопки Администрирование

This commit is contained in:
2022-05-22 11:18:49 +03:00
parent a8ea3fe279
commit 5f3aa8fcd0

View File

@@ -15,6 +15,8 @@ namespace AwesomeEmailExtractor
public MainForm()
{
InitializeComponent();
administrationToolStripMenuItem.Enabled = Globals.currentUser.Role == UserRoles.ADMIN;
}
private void executeButton_Click(object sender, EventArgs e)