skygear-SDK-JS
skygear-SDK-JS copied to clipboard
[Cloud Code] Support role-based access control in lambda / handler
Right now lambda / handler access can only be controlled using authRequired
and userRequired
. It would be nice to be able to control access by user role just like records.
I just want to add that this feature requires support from skygear-server.
Couldn't we just query the _user_role
table from the plugin?
Couldn't we just query the _user_role table from the plugin?
Yes, but that would break the current separation between plugin and server. For example, if we implement it in the plugin side, the python cloud code would not support this feature.
This feature requires some design. Could you add this to SkygearIO/features where this feature will get more focus.