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)
Wed, Nov 20, 7:40 PM
Unknown Object (File)
Wed, Nov 20, 7:49 AM
Unknown Object (File)
Sat, Nov 16, 3:46 PM
Unknown Object (File)
Tue, Nov 12, 7:14 PM
Unknown Object (File)
Tue, Nov 12, 4:01 AM
Unknown Object (File)
Fri, Nov 8, 5:11 AM
Unknown Object (File)
Thu, Oct 31, 7:51 PM
Unknown Object (File)
Oct 21 2024, 11:31 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.