Page MenuHomePhabricator

Conpherence - Implement edit rules for rooms
ClosedPublic

Authored by btrahan on Mar 25 2015, 6:25 PM.
Tags
None
Referenced Files
F19479990: D12161.id29233.diff
Wed, Jan 7, 10:13 PM
F19183594: D12161.id29231.diff
Tue, Dec 16, 4:24 AM
F19146611: D12161.diff
Dec 10 2025, 3:31 PM
F19101983: D12161.id.diff
Dec 5 2025, 5:00 AM
F18802731: D12161.diff
Oct 17 2025, 8:08 PM
F18773955: D12161.id.diff
Oct 9 2025, 1:58 PM
F18770894: D12161.diff
Oct 8 2025, 3:58 PM
F18761414: D12161.id29233.diff
Oct 6 2025, 2:12 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.