Page MenuHomePhabricator

Add Project to quick create menu
ClosedPublic

Authored by chad on Nov 22 2014, 3:43 PM.
Tags
None
Referenced Files
F14058698: D10893.diff
Sun, Nov 17, 2:07 PM
F14044601: D10893.diff
Tue, Nov 12, 6:31 PM
F14040804: D10893.id26172.diff
Mon, Nov 11, 1:36 PM
F14000419: D10893.id26171.diff
Thu, Oct 24, 9:33 PM
F14000417: D10893.id26170.diff
Thu, Oct 24, 9:33 PM
F14000354: D10893.diff
Thu, Oct 24, 9:21 PM
F13981894: D10893.id26170.diff
Oct 19 2024, 7:44 PM
F13978750: D10893.id26172.diff
Oct 19 2024, 12:48 AM
Subscribers

Details

Reviewers
epriestley
Commits
Restricted Diffusion Commit
rP12f3f6d3a9ef: Add Project to quick create menu
Summary

Helpful shortcut, I make quite a few at least

Test Plan

Click on dropdown, then Project. Get to Project Create page

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Add Project to quick create menu.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
epriestley edited edge metadata.

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);
This revision now requires changes to proceed.Nov 22 2014, 3:58 PM
chad edited edge metadata.
  • Update per comments
epriestley edited edge metadata.
This revision is now accepted and ready to land.Nov 22 2014, 7:35 PM
This revision was automatically updated to reflect the committed changes.