Page MenuHomePhabricator

Improve subproject/milestone error handling for users who can't create projects
ClosedPublic

Authored by epriestley on Feb 15 2016, 3:22 PM.
Tags
None
Referenced Files
F15487757: D15274.id36853.diff
Thu, Apr 10, 4:50 PM
F15482392: D15274.id36852.diff
Wed, Apr 9, 5:11 AM
F15481063: D15274.id.diff
Tue, Apr 8, 5:54 PM
F15476212: D15274.diff
Mon, Apr 7, 4:41 AM
F15457681: D15274.diff
Sun, Mar 30, 5:44 PM
F15394349: D15274.id36853.diff
Sat, Mar 15, 11:49 PM
F15394348: D15274.id36852.diff
Sat, Mar 15, 11:49 PM
F15394347: D15274.id.diff
Sat, Mar 15, 11:49 PM
Subscribers
None

Details

Summary

Fixes T10357.

  • Show a better (more descriptive) error message when a user who can't create projects tries to create a subproject or milestone.
  • Disable the subproject actions if you don't have create permission.

All this stuff was already enforced properly: this diff doesn't make any actual policy changes, just improves the UI for users who lack permission.

Test Plan
  • As an unprivileged user (no "Can Create Projects"), tried to create a subproject or milestone.
  • After patch, got a disabled action, with more specific and helpful error than before.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Improve subproject/milestone error handling for users who can't create projects.
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.Feb 15 2016, 3:29 PM
This revision was automatically updated to reflect the committed changes.