diff --git a/src/app/projects/controller/project_list_controller.js b/src/app/projects/controller/project_list_controller.js index 2d542a7c..f7774a65 100644 --- a/src/app/projects/controller/project_list_controller.js +++ b/src/app/projects/controller/project_list_controller.js @@ -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'];