user admin check for bsiSource

This commit is contained in:
Jonathan Jenne 2023-08-02 08:23:52 +02:00
parent 5196bcda8e
commit 89df2495e7

View File

@ -9,6 +9,12 @@ Public Class frmDoc_Links
Try
Refresh_Grid_Data(Documents)
If USER_IS_ADMIN Then
bsiSource.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
Else
bsiSource.Visibility = DevExpress.XtraBars.BarItemVisibility.Never
End If
' TODO: this does not work for the old form
If Documents.Count = 0 Then
Text = $"Document-Links for: NODOC-ID"