REST |
06-20-2017, 12:38 AM
(This post was last modified: 06-20-2017, 02:04 AM by ciadmin. Edit Reason: SEO spam link removed )
Hi
I want to use Rest_controler to make RESTfull api, but I have problem how can I make user perm to resources. For example users/users (GET users list only for admin group users) but users/user/id/10 (GET user for admin group user but for user with ID=10 too) I think about constructor in REST_Controller and ion_auth - check user and redirect to proper method of controller or send 401 error to user, but where is information about user from HTTP auth? best regards Jurek |
Messages In This Thread |
REST - by jms - 06-20-2017, 12:38 AM
|