You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2025/11/11 13:08:25 UTC
(streampipes) branch fix-permissions-dashboard created (now cc72bc510f)
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a change to branch fix-permissions-dashboard
in repository https://gitbox.apache.org/repos/asf/streampipes.git
at cc72bc510f fix: Only admins can see dashboard permissions dialog
This branch includes the following new commits:
new cc72bc510f fix: Only admins can see dashboard permissions dialog
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(streampipes) 01/01: fix: Only admins can see dashboard permissions dialog
Posted by ri...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch fix-permissions-dashboard
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit cc72bc510f4a9cc755c1544de3f10fb554ac1bb9
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Tue Nov 11 14:08:07 2025 +0100
fix: Only admins can see dashboard permissions dialog
---
.../apache/streampipes/rest/impl/datalake/DataLakeWidgetResource.java | 2 +-
.../dashboard-overview-table/dashboard-overview-table.component.html | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/datalake/DataLakeWidgetResource.java b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/datalake/DataLakeWidgetResource.java
index 423e066d3c..fc840505c8 100644
--- a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/datalake/DataLakeWidgetResource.java
+++ b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/datalake/DataLakeWidgetResource.java
@@ -95,7 +95,7 @@ public class DataLakeWidgetResource extends AbstractAuthGuardedRestResource {
produces = MediaType.APPLICATION_JSON_VALUE,
consumes = MediaType.APPLICATION_JSON_VALUE
)
- @PreAuthorize("this.hasWriteAuthority() and hasPermission(#dataExplorerWidgetModel.elementId, 'WRITE')")
+ @PreAuthorize("this.hasWriteAuthority()")
public ResponseEntity<DataExplorerWidgetModel> createDataExplorerWidget(
@RequestBody DataExplorerWidgetModel dataExplorerWidgetModel) {
return ok(resourceManager.create(dataExplorerWidgetModel, getAuthenticatedUserSid()));
diff --git a/ui/src/app/dashboard/components/overview/dashboard-overview-table/dashboard-overview-table.component.html b/ui/src/app/dashboard/components/overview/dashboard-overview-table/dashboard-overview-table.component.html
index 2814907bd6..5896ad55de 100644
--- a/ui/src/app/dashboard/components/overview/dashboard-overview-table/dashboard-overview-table.component.html
+++ b/ui/src/app/dashboard/components/overview/dashboard-overview-table/dashboard-overview-table.component.html
@@ -123,6 +123,7 @@
}
<button
mat-menu-item
+ *ngIf="isAdmin"
[attr.data-cy]="
'manage-dashboard-permissions-' + element.name
"