mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 19:23:37 +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
|
||||
|
||||
before_action :version_required, only: [:update, :perform]
|
||||
before_action :ensure_can_see
|
||||
before_action :ensure_can_see, except: [:destroy]
|
||||
|
||||
def index
|
||||
offset = params[:offset].to_i
|
||||
|
|
|
@ -590,7 +590,7 @@ describe ReviewablesController do
|
|||
end
|
||||
|
||||
context "#destroy" do
|
||||
fab!(:user) { Fabricate(:admin) }
|
||||
fab!(:user) { Fabricate(:user) }
|
||||
|
||||
before do
|
||||
sign_in(user)
|
||||
|
|
Loading…
Reference in New Issue
Block a user