Page MenuHomePhabricator

Conpherence - Implement edit rules for rooms
ClosedPublic

Authored by btrahan on Mar 25 2015, 6:25 PM.
Tags
None
Referenced Files
F18802731: D12161.diff
Fri, Oct 17, 8:08 PM
F18773955: D12161.id.diff
Thu, Oct 9, 1:58 PM
F18770894: D12161.diff
Wed, Oct 8, 3:58 PM
F18761414: D12161.id29233.diff
Mon, Oct 6, 2:12 PM
F18627010: D12161.id29231.diff
Sep 16 2025, 2:58 AM
F18619973: D12161.id29231.diff
Sep 15 2025, 3:53 AM
F18594636: D12161.diff
Sep 12 2025, 6:51 PM
F18505228: D12161.id.diff
Sep 5 2025, 12:30 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
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.