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

This commit is contained in:
Maxim Slipenko 2022-05-22 11:18:49 +03:00
parent a8ea3fe279
commit 5f3aa8fcd0
Signed by: Maks1mS
GPG Key ID: 7461AF39A8705FB8

View File

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