Merge "Tweak for Superuser UI in projects."

This commit is contained in:
Jenkins 2015-03-02 10:48:27 +00:00 committed by Gerrit Code Review
commit c6938e5e6b

View File

@ -20,9 +20,12 @@
* rather than a browse (exclusive) approach.
*/
angular.module('sb.projects').controller('ProjectListController',
function ($scope) {
function ($scope, isSuperuser) {
'use strict';
// inject superuser flag to properly adjust UI.
$scope.is_superuser = isSuperuser;
// search results must be of type "project"
$scope.resourceTypes = ['Project'];