Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qpixel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Answers
Qpixel
Commits
a605fb0e
Commit
a605fb0e
authored
Sep 12, 2022
by
Taico Aerts
Browse files
Options
Downloads
Patches
Plain Diff
Prevent updating of tag names
parent
7d6575e2
No related branches found
No related tags found
1 merge request
!24
Release 22-09-2022
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/tags_controller.rb
+1
-1
1 addition, 1 deletion
app/controllers/tags_controller.rb
with
1 addition
and
1 deletion
app/controllers/tags_controller.rb
+
1
−
1
View file @
a605fb0e
...
@@ -82,7 +82,7 @@ class TagsController < ApplicationController
...
@@ -82,7 +82,7 @@ class TagsController < ApplicationController
return
unless
check_your_privilege
(
'edit_tags'
,
nil
,
true
)
return
unless
check_your_privilege
(
'edit_tags'
,
nil
,
true
)
wiki_md
=
params
[
:tag
][
:wiki_markdown
]
wiki_md
=
params
[
:tag
][
:wiki_markdown
]
if
@tag
.
update
(
tag_params
.
merge
(
wiki:
wiki_md
.
present?
?
helpers
.
render_markdown
(
wiki_md
)
:
nil
))
if
@tag
.
update
(
tag_params
.
merge
(
wiki:
wiki_md
.
present?
?
helpers
.
render_markdown
(
wiki_md
)
:
nil
)
.
except
(
:name
)
)
redirect_to
tag_path
(
id:
@category
.
id
,
tag_id:
@tag
.
id
)
redirect_to
tag_path
(
id:
@category
.
id
,
tag_id:
@tag
.
id
)
else
else
render
:edit
,
status: :bad_request
render
:edit
,
status: :bad_request
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment