Fix that deleting a closed or archived projects not working anymore after r20034 (#35827).

Patch by Holger Just.

git-svn-id: http://svn.redmine.org/redmine/trunk@21210 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2021-09-06 19:11:59 +00:00
parent 1e65114d68
commit 649d69ea26
3 changed files with 42 additions and 2 deletions

View File

@@ -26,7 +26,9 @@ class ProjectsController < ApplicationController
:except => [:index, :autocomplete, :list, :new, :create, :copy]
before_action :authorize,
:except => [:index, :autocomplete, :list, :new, :create, :copy,
:archive, :unarchive]
:archive, :unarchive,
:destroy
]
before_action :authorize_global, :only => [:new, :create]
before_action :require_admin, :only => [:copy, :archive, :unarchive]
accept_rss_auth :index