From d25c2fcb70d16bf1bb1efb1754930a9d8054ff70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <git@minelli.me>
Date: Mon, 18 Mar 2024 15:56:25 +0100
Subject: [PATCH] Gitbeaker => Fix login issue

---
 NodeApp/src/managers/GitlabManager.ts  | 2 +-
 NodeApp/src/managers/SessionManager.ts | 7 +++++++
 NodeApp/src/shared                     | 2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/NodeApp/src/managers/GitlabManager.ts b/NodeApp/src/managers/GitlabManager.ts
index fad38cc..b24ab00 100644
--- a/NodeApp/src/managers/GitlabManager.ts
+++ b/NodeApp/src/managers/GitlabManager.ts
@@ -32,7 +32,7 @@ class GitlabManager extends SharedGitlabManager {
             }
 
             try {
-                notificationSettings = (await this.getNotificationSettings()).data as NotificationSettings;
+                notificationSettings = await this.getNotificationSettings();
 
                 result[0] = true;
 
diff --git a/NodeApp/src/managers/SessionManager.ts b/NodeApp/src/managers/SessionManager.ts
index ef5bc65..27264fc 100644
--- a/NodeApp/src/managers/SessionManager.ts
+++ b/NodeApp/src/managers/SessionManager.ts
@@ -310,6 +310,13 @@ class SessionManager {
             return false;
         }
 
+        if ( checkPermissions && checkPermissions.length === 0 ) {
+            ora({
+                    text  : `Here is your permissions:`,
+                    indent: 4
+                }).start().info();
+        }
+
         return this.checkPermissions(verbose, 8, checkPermissions);
     }
 }
diff --git a/NodeApp/src/shared b/NodeApp/src/shared
index 04b3a98..e1ffeb5 160000
--- a/NodeApp/src/shared
+++ b/NodeApp/src/shared
@@ -1 +1 @@
-Subproject commit 04b3a985a963b87aed586e6b06718dd3052ad32e
+Subproject commit e1ffeb584f5c7805befd951cb82ca179eabcaabb
-- 
GitLab