forked from SteamWar/SteamWar
Include permissions in /me route response
Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
@@ -180,7 +180,7 @@ fun Route.configureDataRoutes() {
|
|||||||
route("/me") {
|
route("/me") {
|
||||||
install(SWPermissionCheck)
|
install(SWPermissionCheck)
|
||||||
get {
|
get {
|
||||||
call.respond(ResponseUser(call.principal<SWAuthPrincipal>()!!.user))
|
call.respond(ResponseUser(call.principal<SWAuthPrincipal>()!!.user, includePerms = true))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user