Add delete user routes

This commit is contained in:
2024-09-04 16:27:49 +02:00
parent 1b192c7d05
commit 9b2f6eadc7
2 changed files with 49 additions and 4 deletions
+1 -1
View File
@@ -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")