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
Unknown Object (File)
Thu, Apr 25, 12:02 AM
Unknown Object (File)
Sat, Apr 20, 10:53 PM
Unknown Object (File)
Thu, Apr 11, 8:19 AM
Unknown Object (File)
Fri, Apr 5, 1:28 PM
Unknown Object (File)
Fri, Apr 5, 11:19 AM
Unknown Object (File)
Sun, Mar 31, 10:01 AM
Unknown Object (File)
Sat, Mar 30, 4:40 PM
Unknown Object (File)
Sat, Mar 30, 4:40 PM
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
Branch
menu1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 15394
Build 20277: Run Core Tests
Build 20276: arc lint + arc unit

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.