? ? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
4 Dec 2020

Pull Request for Issue #31130 .

Summary of Changes

as per #31130 (comment)
removed the exceptions for the API from com_content

Testing Instructions

try to delete a published article via api
{{base_path}}/api/index.php/v1/content/article/{article_id}

Actual result BEFORE applying this Pull Request

you can do it

Expected result AFTER applying this Pull Request

you cannot

Documentation Changes Required

?

avatar alikon alikon - open - 4 Dec 2020
avatar alikon alikon - change - 4 Dec 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Dec 2020
Category Administration com_content
avatar wilsonge wilsonge - change - 4 Dec 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 4 Dec 2020
Category Administration com_content Administration com_content Unit Tests
avatar wilsonge wilsonge - change - 4 Dec 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-12-04 21:24:13
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 4 Dec 2020
avatar wilsonge wilsonge - merge - 4 Dec 2020
avatar wilsonge
wilsonge - comment - 4 Dec 2020

Thanks!

avatar MayaSima
MayaSima - comment - 27 Sep 2021

@alikon
I tried to put an article in Trashed state, and then delete it, but it still didn't work:

PATCH /api/index.php/v1/content/articles/10 {"state": "-2"} - successful
DELETE /api/index.php/v1/content/articles/10

results in 401
{ "errors": [ { "title": "Forbidden" } ] }

avatar alikon
alikon - comment - 28 Sep 2021

unable to reproduce, it's working for me if the article is trashed

Add a Comment

Login with GitHub to post a comment