c2siorg / Codelabz

Codelabz
Apache License 2.0
12 stars 51 forks source link

[ Fix : Change Permissions For Organization Users ] #107

Open rohitPandey469 opened 7 months ago

rohitPandey469 commented 7 months ago

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 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.

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: