mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-26 07:26:41 +00:00
Using the same permission check on the client as on the server to decide
if the create user button is shown
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ public class UserManagementPanel<TR extends CellTableWithCheckboxResources> exte
|
||||
final AccessControlledButtonPanel buttonPanel = new AccessControlledButtonPanel(userService, USER);
|
||||
west.add(buttonPanel);
|
||||
buttonPanel.addUnsecuredAction(stringMessages.refresh(), this::updateUsers);
|
||||
buttonPanel.addCreateAction(stringMessages.createUser(),
|
||||
buttonPanel.addCreateActionWithoutServerCreateObjectPermissionCheck(stringMessages.createUser(),
|
||||
() -> new CreateUserDialog(stringMessages, userManagementService, userCreatedHandlers, userService)
|
||||
.show());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user