new work packages disabled until proven otherwise.

pull/1499/head
Richard 11 years ago
parent e75200ff46
commit 3acd4875f2
  1. 1
      app/assets/javascripts/angular/work_packages/controllers/work-packages-list-controller.js
  2. 1
      app/controllers/api/experimental/work_packages_controller.rb

@ -56,6 +56,7 @@ angular.module('openproject.workPackages.controllers')
function initialSetup() {
$scope.operatorsAndLabelsByFilterType = OPERATORS_AND_LABELS_BY_FILTER_TYPE;
$scope.disableFilters = false;
$scope.disableNewWorkPackage = true;
var getWorkPackages, params;
if($scope.query_id){

@ -183,6 +183,7 @@ module Api
def work_packages_links
links = {}
links[:create] = api_experimental_query_path(@project) if User.current.allowed_to?(:add_work_packages, @project)
links
end
def query_as_json(query, user)

Loading…
Cancel
Save