Page MenuHomePhabricator

Conpherence - Implement edit rules for rooms
ClosedPublic

Authored by btrahan on Mar 25 2015, 6:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 4:18 AM
Unknown Object (File)
Mon, Apr 15, 12:06 AM
Unknown Object (File)
Thu, Apr 11, 7:49 PM
Unknown Object (File)
Thu, Apr 11, 7:49 PM
Unknown Object (File)
Tue, Apr 2, 10:23 PM
Unknown Object (File)
Fri, Mar 29, 12:34 PM
Unknown Object (File)
Mar 16 2024, 7:55 AM
Unknown Object (File)
Mar 5 2024, 4:07 PM
Subscribers

Details

Summary

Fixes T7586. If you can't edit a room, the pertinent UI is greyed out. One exception is the title of the room in the full viewer; this crumb is not disabled as it would be hard to read. Otherwise though, everything is disabled nicely.

Test Plan

tried to add participants when I wasn't allowed to and got an error. added participants otherwise okay. tried to edit title when i wasn't allowed and got an error. otherwise okay. left conpherence threads / rooms successfully.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to Conpherence - Implement edit rules for rooms.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.

I guess I should be doing the requiresCapabilities stuff in the ConpherenceThreadEditor too

epriestley edited edge metadata.

I guess I should be doing the requiresCapabilities stuff in the ConpherenceThreadEditor too

Yeah, this would be good for completeness. We should ideally probably default everything to require CAN_EDIT, but that would be a lot of work / hard to test.

Everything else looks great.

This revision is now accepted and ready to land.Mar 25 2015, 6:30 PM
btrahan edited edge metadata.

implement requireCapabilities in the editor too

This revision was automatically updated to reflect the committed changes.