Apps.Whiteboard icon indicating copy to clipboard operation
Apps.Whiteboard copied to clipboard

[ Feat ]: Revoke rights for a certain user

Open brf153 opened this issue 2 years ago • 6 comments

closes #79

Steps I have taken:

  1. Created a new command to revoke user rights.
  2. Implemented the /whiteboard deny {userName} of {boardName} command for this purpose.
  3. Extracted userName and boardName from the context parameters.
  4. Developed a new function to remove the specified userName from the boardOwner of the given board.
  5. Updated the board using the storeBoardData function.
  6. Sent a message to the board owner, notifying them that {userName} has been removed from the rights of {boardName}.

brf153 avatar Jan 28 '24 12:01 brf153

https://github.com/RocketChat/Apps.Whiteboard/assets/107868772/72f66447-9d59-4cbb-b4c3-158cc6f9e0b8

brf153 avatar Jan 28 '24 13:01 brf153

hey @brf153 I think after your recent pr of permission I think we are not able to modify board name etc , please look into it

CulturalProfessor avatar Jan 29 '24 17:01 CulturalProfessor

@CulturalProfessor its working in my system

https://github.com/RocketChat/Apps.Whiteboard/assets/107868772/33d4c608-9759-46fb-be1b-eb5155b43565

brf153 avatar Jan 29 '24 17:01 brf153

https://github.com/RocketChat/Apps.Whiteboard/assets/107868772/dd5bc02b-86ad-4798-a484-69afa0ffdb41

brf153 avatar Jan 29 '24 17:01 brf153

can you try after taking a pull it might be due to @Giridharan002 's pr

CulturalProfessor avatar Jan 29 '24 17:01 CulturalProfessor

@CulturalProfessor oki I will check it

brf153 avatar Jan 29 '24 17:01 brf153