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
F15403012: D17257.id41512.diff
Tue, Mar 18, 1:38 AM
F15388779: D17257.diff
Sat, Mar 15, 4:22 AM
Unknown Object (File)
Fri, Feb 28, 4:37 AM
Unknown Object (File)
Fri, Feb 21, 3:08 PM
Unknown Object (File)
Feb 9 2025, 3:12 AM
Unknown Object (File)
Feb 9 2025, 3:12 AM
Unknown Object (File)
Feb 9 2025, 3:12 AM
Unknown Object (File)
Jan 24 2025, 6:51 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.