[ Fix : Implemented The Option to Add&Remove Editor (1), Admins (2), Reviewers (0) to Organization ] #77
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The
OrgUsersCard
wasn't using theaddOrgUserModal
which is already present, so I fixed it by opening theaddOrgUserModal
on clicking the+ Add New
button, afterwards when the Modal is opened, it showslist of all the users having access
to the organization including the option to search an organization user and remove lower leveled permission users. And the modal has a+Add New
button as well which adds users to that organization.Now when a tutorial is created by a user in an organization then all other users present in that org. have access to edit it.
Related Issue
Fixes #76
Motivation and Context
Adding an option to add and remove users in an organization with permission.
How Has This Been Tested?
Tested locally on my machine.
Video reference:
What I am doing here?
Logged in through Sarfraz id and Rohit id ( org. for this is created by me manually - the org. creation issue is solved in another PR ) then in the
youtube
org. of Sarfraz ( whose access only sarfraz have ) choserohithandle
as the Admin of the youtube ( permission level 2 ), now tutorial created insideyoutube
can be edited by both the users.Screen.Recording.-.Feb.23.2024.mp4
Here shown some more glimpse of it, actually it was already implemented or present in the code I just connected everything and fixed something to make it work.
Screen.Recording.-.Feb.23.2024.1.mp4
Types of changes
Checklist:
Note:
orgUserCard
and connected it - might be that it wasn't connected or left and no one noticed cause in previous PR's the guy created a new modal to do the same work.