Disable work package add button if not signed in

pull/3563/head
Alex Dik 9 years ago committed by Stefan Botzenhart
parent 805880247d
commit 74ad16f9b4
  1. 1
      frontend/app/work_packages/controllers/index.js
  2. 5
      frontend/app/work_packages/controllers/work-package-show-controller.js

@ -142,6 +142,7 @@ angular.module('openproject.workPackages.controllers')
'HookService', 'HookService',
'$window', '$window',
'WorkPackageAttachmentsService', 'WorkPackageAttachmentsService',
'AuthorisationService',
require('./work-package-show-controller') require('./work-package-show-controller')
]) ])
.controller('WorkPackagesController', [ .controller('WorkPackagesController', [

@ -56,9 +56,12 @@ module.exports = function($scope,
PERMITTED_MORE_MENU_ACTIONS, PERMITTED_MORE_MENU_ACTIONS,
HookService, HookService,
$window, $window,
WorkPackageAttachmentsService WorkPackageAttachmentsService,
AuthorisationService
) { ) {
$scope.can = AuthorisationService.can;
$scope.cannot = AuthorisationService.cannot;
$scope.$on('$stateChangeSuccess', function(event, toState){ $scope.$on('$stateChangeSuccess', function(event, toState){
latestTab.registerState(toState.name); latestTab.registerState(toState.name);

Loading…
Cancel
Save