Helpful shortcut, I make quite a few at least
Details
Details
- Reviewers
epriestley - Commits
- Restricted Diffusion Commit
rP12f3f6d3a9ef: Add Project to quick create menu
Click on dropdown, then Project. Get to Project Create page
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Branch
- proj-quick
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 3132 Build 3138: [Placeholder Plan] Wait for 30 Seconds
Event Timeline
Comment Actions
We should only add this item if the viewer can create a project (or should disable it if they can not).
From within a controller you can normally call $this->hasApplicationCapability(...) to test the viewer for a capability like this, but that isn't available from within an Application object. You can do this instead:
$can_create = PhabricatorPolicyFilter::hasCapability( $viewer, $this, ProjectCreateProjectsCapability::CAPABILITY);