ardanlabs / service

Starter-kit for writing services in Go using Kubernetes.

Home Page:https://www.ardanlabs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

user role question

himynamej opened this issue · comments

in user put handler :
app.Handle(http.MethodPut, version, "/users/{user_id}", hdl.update, authen, ruleAuthorizeUser)
user can update His own roles?

WOW, what a great catch. I have to think about this and review that possibility. Thanks for ruining my day. Hahahahaha. JK

Added a new route for updating a role.