From 89df2495e76df91d34fc982690a60f43155ae7ed Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Wed, 2 Aug 2023 08:23:52 +0200 Subject: [PATCH] user admin check for bsiSource --- app/DD-Record-Organizer/frmDoc_Links.vb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/DD-Record-Organizer/frmDoc_Links.vb b/app/DD-Record-Organizer/frmDoc_Links.vb index 3547d02..fcd0218 100644 --- a/app/DD-Record-Organizer/frmDoc_Links.vb +++ b/app/DD-Record-Organizer/frmDoc_Links.vb @@ -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"