jj: fix admin check
This commit is contained in:
parent
778a519ab1
commit
2ca9c7e29d
@ -12,7 +12,7 @@ Public Class frmMain
|
|||||||
Private DragDropManager As ClassDragDrop = Nothing
|
Private DragDropManager As ClassDragDrop = Nothing
|
||||||
|
|
||||||
Private Sub frmMain_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
Private Sub frmMain_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||||
If TBDD_USERTableAdapter.IsUserManagerAdmin(Environment.UserName) > 0 Then
|
If TBDD_USERTableAdapter.IsUserManagerAdmin(Environment.UserName) = 1 Then
|
||||||
Dim userRow As TBDD_USERRow = GetCurrentUserRow(Environment.UserName)
|
Dim userRow As TBDD_USERRow = GetCurrentUserRow(Environment.UserName)
|
||||||
tsLabelUser.Text = $"Angemeldeter Benutzer: {userRow.USERNAME}"
|
tsLabelUser.Text = $"Angemeldeter Benutzer: {userRow.USERNAME}"
|
||||||
CurrentUser = userRow
|
CurrentUser = userRow
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user