Page MenuHomePhabricator

Straighten out reorder permissions on form configurations
ClosedPublic

Authored by epriestley on Dec 19 2015, 2:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 3:37 PM
Unknown Object (File)
Thu, Dec 19, 2:52 PM
Unknown Object (File)
Thu, Dec 19, 11:45 AM
Unknown Object (File)
Tue, Nov 26, 9:12 PM
Unknown Object (File)
Sat, Nov 23, 4:59 AM
Unknown Object (File)
Nov 21 2024, 4:48 PM
Unknown Object (File)
Nov 17 2024, 4:11 PM
Unknown Object (File)
Nov 14 2024, 7:55 AM
Subscribers

Details

Summary

Fixes T10012. The permissions here are little weird: you need edit permission on the configurations, not the engines. I was checking edit permission on the engines only.

I should possibly make this a bit more consistent, the engine edit permission is just very convenient to use to enforce object create permission right now. I'll likely clean this up after T9789.

Test Plan
  • Tried to reorder forms as a less-privileged user, got proper policy errors.
  • Reordered forms normally as a regular user.

Diff Detail

Repository
rP Phabricator
Branch
sort1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 9658
Build 11569: Run Core Tests
Build 11568: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Straighten out reorder permissions on form configurations.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Dec 19 2015, 3:33 PM
This revision was automatically updated to reflect the committed changes.