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
F19508380: D15274.id36852.diff
Sat, Jan 10, 3:47 AM
F19498337: D15274.id.diff
Thu, Jan 8, 12:58 PM
F19343787: D15274.id.diff
Fri, Dec 26, 12:21 AM
F18906207: D15274.id36852.diff
Nov 8 2025, 5:28 PM
F18872574: D15274.diff
Nov 5 2025, 5:10 AM
F18850684: D15274.id.diff
Oct 30 2025, 6:40 PM
F18844285: D15274.diff
Oct 29 2025, 4:25 AM
F18843035: D15274.diff
Oct 28 2025, 8:33 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
Branch
bperm1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 10696
Build 13144: Run Core Tests
Build 13143: arc lint + arc unit

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.