Merge "Tweak for Superuser UI in projects."
This commit is contained in:
commit
c6938e5e6b
@ -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'];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user