ardanlabs / service

Starter-kit for writing services in Go using Kubernetes.
https://www.ardanlabs.com
Apache License 2.0
3.4k stars 613 forks source link

user role question #372

Closed himynamej closed 1 month ago

himynamej commented 1 month ago

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

ardan-bkennedy commented 1 month ago

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

ardan-bkennedy commented 1 month ago

Send me an email @himynamej bill@ardanlabs.com

himynamej commented 1 month ago

Ok my email is javadah1376@gmail.com

ardan-bkennedy commented 1 month ago

Added a new route for updating a role.