From b13960104d55f663cceda9e7afacfae201225e00 Mon Sep 17 00:00:00 2001
From: Milan Mladoniczky <6153201+tuplle@users.noreply.github.com>
Date: Wed, 27 Aug 2025 23:21:46 +0200
Subject: [PATCH] [NAE-2201] Dashboard management missing permissions

- add a default role reference with view permission to `dashboard_item.xml`
- add a default role reference with view permission to `dashboard_management.xml`
---
 application-engine/pom.xml                                  | 2 +-
 .../resources/petriNets/engine-processes/dashboard_item.xml | 6 ++++++
 .../petriNets/engine-processes/dashboard_management.xml     | 6 ++++++
 nae-object-library/pom.xml                                  | 2 +-
 nae-spring-core-adapter/pom.xml                             | 2 +-
 nae-user-ce/pom.xml                                         | 2 +-
 nae-user-common/pom.xml                                     | 2 +-
 pom.xml                                                     | 2 +-
 8 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/application-engine/pom.xml b/application-engine/pom.xml
index d108e3fd97..6bc235f75e 100644
--- a/application-engine/pom.xml
+++ b/application-engine/pom.xml
@@ -6,7 +6,7 @@
     <parent>
         <groupId>com.netgrif</groupId>
         <artifactId>application-engine-parent</artifactId>
-        <version>7.0.0-SNAPSHOT</version>
+        <version>7.0.0-RC6.1</version>
     </parent>
 
     <artifactId>application-engine</artifactId>
diff --git a/application-engine/src/main/resources/petriNets/engine-processes/dashboard_item.xml b/application-engine/src/main/resources/petriNets/engine-processes/dashboard_item.xml
index 3f4a018280..b477948b5b 100644
--- a/application-engine/src/main/resources/petriNets/engine-processes/dashboard_item.xml
+++ b/application-engine/src/main/resources/petriNets/engine-processes/dashboard_item.xml
@@ -7,6 +7,12 @@
     <anonymousRole>false</anonymousRole>
     <transitionRole>false</transitionRole>
 
+    <roleRef>
+        <id>default</id>
+        <caseLogic>
+            <view>true</view>
+        </caseLogic>
+    </roleRef>
     <roleRef>
         <id>system</id>
         <caseLogic>
diff --git a/application-engine/src/main/resources/petriNets/engine-processes/dashboard_management.xml b/application-engine/src/main/resources/petriNets/engine-processes/dashboard_management.xml
index 2475b28d29..85f72dbfff 100644
--- a/application-engine/src/main/resources/petriNets/engine-processes/dashboard_management.xml
+++ b/application-engine/src/main/resources/petriNets/engine-processes/dashboard_management.xml
@@ -7,6 +7,12 @@
     <anonymousRole>false</anonymousRole>
     <transitionRole>false</transitionRole>
 
+    <roleRef>
+        <id>default</id>
+        <caseLogic>
+            <view>true</view>
+        </caseLogic>
+    </roleRef>
     <roleRef>
         <id>system</id>
         <caseLogic>
diff --git a/nae-object-library/pom.xml b/nae-object-library/pom.xml
index 0b0d1d5449..bc09f7052e 100644
--- a/nae-object-library/pom.xml
+++ b/nae-object-library/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>com.netgrif</groupId>
         <artifactId>application-engine-parent</artifactId>
-        <version>7.0.0-SNAPSHOT</version>
+        <version>7.0.0-RC6.1</version>
     </parent>
 
     <artifactId>nae-object-library</artifactId>
diff --git a/nae-spring-core-adapter/pom.xml b/nae-spring-core-adapter/pom.xml
index 4186579e94..172a4e46d3 100644
--- a/nae-spring-core-adapter/pom.xml
+++ b/nae-spring-core-adapter/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>com.netgrif</groupId>
         <artifactId>application-engine-parent</artifactId>
-        <version>7.0.0-SNAPSHOT</version>
+        <version>7.0.0-RC6.1</version>
     </parent>
 
     <artifactId>nae-spring-core-adapter</artifactId>
diff --git a/nae-user-ce/pom.xml b/nae-user-ce/pom.xml
index df95f42ccf..f70cef92f6 100644
--- a/nae-user-ce/pom.xml
+++ b/nae-user-ce/pom.xml
@@ -6,7 +6,7 @@
     <parent>
         <groupId>com.netgrif</groupId>
         <artifactId>application-engine-parent</artifactId>
-        <version>7.0.0-SNAPSHOT</version>
+        <version>7.0.0-RC6.1</version>
     </parent>
 
     <artifactId>nae-user-ce</artifactId>
diff --git a/nae-user-common/pom.xml b/nae-user-common/pom.xml
index ad8b6dfc5e..cea6e0842d 100644
--- a/nae-user-common/pom.xml
+++ b/nae-user-common/pom.xml
@@ -6,7 +6,7 @@
     <parent>
         <groupId>com.netgrif</groupId>
         <artifactId>application-engine-parent</artifactId>
-        <version>7.0.0-SNAPSHOT</version>
+        <version>7.0.0-RC6.1</version>
     </parent>
 
     <artifactId>nae-user-common</artifactId>
diff --git a/pom.xml b/pom.xml
index 794d7e9c12..e9f148ecb3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
 
     <groupId>com.netgrif</groupId>
     <artifactId>application-engine-parent</artifactId>
-    <version>7.0.0-SNAPSHOT</version>
+    <version>7.0.0-RC6.1</version>
     <packaging>pom</packaging>
 
     <name>NETGRIF Application Engine parent</name>
