skygear-SDK-JS icon indicating copy to clipboard operation
skygear-SDK-JS copied to clipboard

[Cloud Code] Support role-based access control in lambda / handler

Open akiroz opened this issue 7 years ago • 3 comments

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.

akiroz avatar Apr 19 '17 05:04 akiroz

I just want to add that this feature requires support from skygear-server.

cheungpat avatar Apr 19 '17 05:04 cheungpat

Couldn't we just query the _user_role table from the plugin?

akiroz avatar Apr 19 '17 05:04 akiroz

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.

cheungpat avatar Apr 19 '17 06:04 cheungpat