Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0][api] core delete #31581

Merged
merged 2 commits into from
Dec 4, 2020
Merged

[4.0][api] core delete #31581

merged 2 commits into from
Dec 4, 2020

Conversation

alikon
Copy link
Contributor

@alikon alikon commented Dec 4, 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

?

@wilsonge wilsonge merged commit a01ee20 into joomla:4.0-dev Dec 4, 2020
@wilsonge
Copy link
Contributor

wilsonge commented Dec 4, 2020

Thanks!

@MayaSima
Copy link

MayaSima commented Sep 27, 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" } ] }

@alikon
Copy link
Contributor Author

alikon commented Sep 28, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants