Page MenuHomePhabricator

Clean up "reorder" permissions in MenuEngine for personal favorites
ClosedPublic

Authored by epriestley on Jan 27 2017, 3:45 AM.
Tags
None
Referenced Files
F13196345: D17257.id41513.diff
Sun, May 12, 11:11 PM
F13183524: D17257.id41512.diff
Fri, May 10, 10:02 AM
F13183173: D17257.id.diff
Fri, May 10, 7:15 AM
F13182494: D17257.diff
Thu, May 9, 11:32 PM
Unknown Object (File)
Mon, May 6, 2:10 AM
Unknown Object (File)
Thu, May 2, 7:59 AM
Unknown Object (File)
Sun, Apr 28, 3:17 PM
Unknown Object (File)
Thu, Apr 25, 12:02 AM
Subscribers
None

Details

Summary

Fixes T12159. This is similar to D17228, which fixed this for the main configuration operation.

Most other edit operations only test for edit capability on the MenuItem itself, which we already do correctly. However, because reordering affects all items, we test for capability on the object.

Weaken this when reordering custom items.

Test Plan

Reordered custom items in Favorites as a non-administrator.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jan 27 2017, 3:45 AM

npz

Also I didn't write it anywhere up there ^^^ but I made some kind of effort to double check everything else and I think this is the only one I missed so hopefully we're good now.

This revision was automatically updated to reflect the committed changes.