This commit is contained in:
1 parent
2d7a55e427
commit
93385646b6
2 files changed
+6
-3
No files matched your search
@@ -51,7 +51,7 @@ func JwtAuthAdminMiddleware() gin.HandlerFunc {
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
log.Printf("JwtAuthAdminMiddleware retrieved UserRole object '%v'\n", ur)
|
||||
log.Printf("JwtAuthAdminMiddleware retrieved UserRole object for UserId '%d'\n", ur.UserId)
|
||||
|
||||
// Verify that the user has a role with the admin flag set
|
||||
if !ur.Admin {
|
||||
|
||||
Reference in new issue
Block a user