Skip to content

Commit f976065

Browse files
committed
AYS-383 | role:detail Permission Has Been Defined to Permission List Endpoint
1 parent 62683f5 commit f976065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/ays/auth/controller/AysPermissionController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class AysPermissionController {
3838
* @return {@link AysResponse} containing a list of {@link AysPermissionsResponse}.
3939
*/
4040
@GetMapping("/permissions")
41-
@PreAuthorize("hasAnyAuthority('role:create', 'role:update')")
41+
@PreAuthorize("hasAnyAuthority('role:detail','role:create', 'role:update')")
4242
public AysResponse<List<AysPermissionsResponse>> findAll() {
4343

4444
final List<AysPermission> permissions = permissionService.findAll();

0 commit comments

Comments
 (0)