Added a new orgs. action called updateUserPermissions, which takes org_handle, userId and permissions as params, then update the permission for the user in "org_users" collection. And also updated the getOrgUserData action to provide "uid" as well so can use it as handle for "handlePermissions" function.
Fixed removeOrgUser action accordingly aswell.
Related Issue
Fixes #78
Motivation and Context
One would want to change permission of the users in organization, according to his work.
Description
Added a new orgs. action called
updateUserPermissions
, which takes org_handle, userId and permissions as params, then update the permission for the user in "org_users" collection. And also updated thegetOrgUserData
action to provide "uid" as well so can use it as handle for "handlePermissions" function. FixedremoveOrgUser
action accordingly aswell.Related Issue
Fixes #78
Motivation and Context
One would want to change permission of the users in organization, according to his work.
How Has This Been Tested?
Tested locally on my machine.
Video reference:
https://github.com/c2siorg/Codelabz/assets/123815256/c3943336-4569-41bf-8327-a3e73c580700
Delete button is also working, copy the change files and test. Covered in another PR already.
Types of changes
Checklist: