HomePhabricator
Diffusion Comm b240a4943423

[server] Create script to add LEAVE_THREAD permission

Description

[server] Create script to add LEAVE_THREAD permission

Test Plan:
Tested on a single row to check if results are matching expectacions.
Inspected membership table to check if leave_thread permission is added. Inspected roles table to check if permission is added.
Ran a query after the script, and made sure only personal threads are in the result:
SELECT * FROM roles WHERE JSON_EXTRACT(permissions, "$.leave_thread") IS NULL
Checked if leave thread button is displayed and after pressing there are no errors and user leaves thread

Reviewers: ashoat, palys-swm

Reviewed By: ashoat

Subscribers: zrebcu411, Adrian

Differential Revision: https://phabricator.ashoat.com/D466

Details

Provenance
KatPoAuthored on Dec 1 2020, 2:59 AM
Reviewer
ashoat
Differential Revision
Restricted Differential Revision
Parents
rCOMMacbf1b483a7a: [server] Extract updateAllThreadPermissions and rename to…
Branches
Unknown
Tags
Unknown