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 <[email protected]> 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 "
