#role administration

3 messages · Page 1 of 1 (latest)

fresh kelp
#

Hi. Can I handle a simple role administration within a controller? In req object I have the user, who has a role_id. Can I validate if the role is the one I'm expecting and if not throw a not authorized exception or something like that?

astral mulch
#
fresh kelp
#

thank you