Allow non-logged-in proper redirect for template posts (#1977)
This commit is contained in:
parent
b271e96965
commit
e491cf1f65
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class ArticlesController < ApplicationController
|
|||
Article.new(body_markdown: @tag.submission_template_customized(@user.name),
|
||||
processed_html: "", user_id: current_user&.id)
|
||||
elsif @tag.present?
|
||||
authorize Article
|
||||
skip_authorization
|
||||
Article.new(
|
||||
body_markdown: "---\ntitle: \npublished: false\ndescription: \ntags: " + @tag.name + "\n---\n\n",
|
||||
processed_html: "", user_id: current_user&.id
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue