Skip to content

Commit

Permalink
fix: add missing Query annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Jun 13, 2024
1 parent 3b596b4 commit dfc296c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ public interface RoleClassPermissionRepository extends BasePermissionRepository<
@Query(value = "DELETE FROM {h-schema}roleclasspermissions u WHERE u.role_id=:roleId", nativeQuery = true)
void deleteAllByRoleId(@Param("roleId") Long roleId);

@QueryHints(@QueryHint(name = AvailableHints.HINT_CACHEABLE, value = "true"))
List<RoleClassPermission> findByClassName(String className);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SHOGun, https://terrestris.github.io/shogun/
*
* Copyright © 2020-present terrestris GmbH & Co. KG
* Copyright © 2024-present terrestris GmbH & Co. KG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public boolean hasPermission(User user, E entity, PermissionType permission) {

// CHECK ROLE CLASS PERMISSIONS
if (this.hasPermissionByRoleClassPermission(user, entity, permission)) {
log.trace("Granting {} access by role instance permissions", permission);
log.trace("Granting {} access by role class permissions", permission);

return true;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SHOGun, https://terrestris.github.io/shogun/
*
* Copyright © 2023-present terrestris GmbH & Co. KG
* Copyright © 2024-present terrestris GmbH & Co. KG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SHOGun, https://terrestris.github.io/shogun/
*
* Copyright © 2022-present terrestris GmbH & Co. KG
* Copyright © 2024-present terrestris GmbH & Co. KG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit dfc296c

Please sign in to comment.