mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:24:38 +08:00
FIX: Users should be able to delete their own queued posts (#10265)
This commit is contained in:
parent
7ab5658462
commit
98eb7a3f00
|
@ -6,7 +6,7 @@ class ReviewablesController < ApplicationController
|
||||||
PER_PAGE = 10
|
PER_PAGE = 10
|
||||||
|
|
||||||
before_action :version_required, only: [:update, :perform]
|
before_action :version_required, only: [:update, :perform]
|
||||||
before_action :ensure_can_see
|
before_action :ensure_can_see, except: [:destroy]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
offset = params[:offset].to_i
|
offset = params[:offset].to_i
|
||||||
|
|
|
@ -590,7 +590,7 @@ describe ReviewablesController do
|
||||||
end
|
end
|
||||||
|
|
||||||
context "#destroy" do
|
context "#destroy" do
|
||||||
fab!(:user) { Fabricate(:admin) }
|
fab!(:user) { Fabricate(:user) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
sign_in(user)
|
sign_in(user)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user