Page MenuHomePhabricator

Conpherence - Implement edit rules for rooms
ClosedPublic

Authored by btrahan on Mar 25 2015, 6:25 PM.
Tags
None
Referenced Files
F15520434: D12161.id29231.diff
Sun, Apr 20, 6:33 AM
F15489095: D12161.id29231.diff
Fri, Apr 11, 5:59 AM
F15487566: D12161.id29233.diff
Thu, Apr 10, 3:10 PM
F15484502: D12161.diff
Wed, Apr 9, 6:40 PM
F15477333: D12161.id.diff
Mon, Apr 7, 1:32 PM
F15476298: D12161.id29232.diff
Mon, Apr 7, 5:10 AM
F15475077: D12161.diff
Sun, Apr 6, 3:30 PM
F15421785: D12161.id29233.diff
Mar 22 2025, 2:12 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.