aliases/implications: log manual deletions by admins.
Log when an admin manually deletes an alias or implication outside of a BUR. This is usually only necessary when a BUR is bugged.
This commit is contained in:
@@ -15,7 +15,7 @@ class TagAliasesController < ApplicationController
|
||||
|
||||
def destroy
|
||||
@tag_alias = authorize TagAlias.find(params[:id])
|
||||
@tag_alias.reject!
|
||||
@tag_alias.reject!(CurrentUser.user)
|
||||
|
||||
respond_with(@tag_alias, location: tag_aliases_path, notice: "Tag alias was deleted")
|
||||
end
|
||||
|
||||
@@ -15,7 +15,7 @@ class TagImplicationsController < ApplicationController
|
||||
|
||||
def destroy
|
||||
@tag_implication = authorize TagImplication.find(params[:id])
|
||||
@tag_implication.reject!
|
||||
@tag_implication.reject!(CurrentUser.user)
|
||||
|
||||
respond_with(@tag_implication, location: tag_implications_path, notice: "Tag implication was deleted")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user