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)
Wed, May 1, 12:18 AM
Unknown Object (File)
Tue, Apr 30, 4:57 PM
Unknown Object (File)
Tue, Apr 30, 4:57 PM
Unknown Object (File)
Tue, Apr 30, 4:57 PM
Unknown Object (File)
Tue, Apr 30, 4:57 PM
Unknown Object (File)
Mon, Apr 29, 2:26 PM
Unknown Object (File)
Tue, Apr 16, 4:18 AM
Unknown Object (File)
Mon, Apr 15, 12:06 AM
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
Branch
T7586
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 4980
Build 4998: [Placeholder Plan] Wait for 30 Seconds

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.