mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-03 12:06:41 +00:00
Add delete user routes
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ func GetCurrentUserId(c echo.Context) (uuid.UUID, error) {
|
||||
return ret, nil
|
||||
}
|
||||
|
||||
func CheckPremissions(c echo.Context, perms []string) error {
|
||||
func CheckPermissions(c echo.Context, perms []string) error {
|
||||
token, ok := c.Get("user").(*jwt.Token)
|
||||
if !ok {
|
||||
return echo.NewHTTPError(401, "Not logged in")
|
||||
|
||||
Reference in New Issue
Block a user