Skip to content

Commit

Permalink
Fix user and group endpoint for permission check (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuprexDE authored Oct 7, 2024
1 parent c549525 commit 7408814
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/luckperms/rest/service/GroupService.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ public interface GroupService {
@GET("/group/{name}/meta")
Call<Metadata> metadata(@Path("name") String name);

@GET("/group/{name}/permissionCheck")
@GET("/group/{name}/permission-check")
Call<PermissionCheckResult> permissionCheck(@Path("name") String name, @Query("permission") String permission);

@POST("/group/{name}/permissionCheck")
@POST("/group/{name}/permission-check")
Call<PermissionCheckResult> permissionCheck(@Path("name") String name, @Body PermissionCheckRequest req);

}
4 changes: 2 additions & 2 deletions src/main/java/net/luckperms/rest/service/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ public interface UserService {
@GET("/user/{uniqueId}/meta")
Call<Metadata> metadata(@Path("uniqueId") UUID uniqueId);

@GET("/user/{uniqueId}/permissionCheck")
@GET("/user/{uniqueId}/permission-check")
Call<PermissionCheckResult> permissionCheck(@Path("uniqueId") UUID uniqueId, @Query("permission") String permission);

@POST("/user/{uniqueId}/permissionCheck")
@POST("/user/{uniqueId}/permission-check")
Call<PermissionCheckResult> permissionCheck(@Path("uniqueId") UUID uniqueId, @Body PermissionCheckRequest req);

@POST("/user/{uniqueId}/promote")
Expand Down

0 comments on commit 7408814

Please sign in to comment.