Issue 135: Add number of pending project requests to forge management text link

This commit is contained in:
Nathan Adams
2016-03-06 16:55:29 -06:00
parent a118e8c73a
commit 403f15a46e
2 changed files with 2 additions and 1 deletions

View File

@@ -107,6 +107,7 @@ function IDF_Middleware_ContextPreProcessor($request)
$c = array();
$c['request'] = $request;
$c['isAdmin'] = ($request->user->administrator or $request->user->staff);
$c["pendingProjects"] = Pluf::factory("IDF_ProjectRequest")->getCount();
if (isset($request->project)) {
$c['project'] = $request->project;
$c['isOwner'] = $request->user->hasPerm('IDF.project-owner',