Skip to content

Allow Edit after Soft deny is no longer possible (always denied) for backend articles manager #11463

@ggppdk

Description

@ggppdk

Steps to reproduce the issue

at global configuration permissions
and
at Article component

do not assign Edit and Edit.own privilege

  • neither to the usergroup Manager directly
  • nor via their parents groups

(set everything to not-set or "inherited")

  • this is soft-deny so that we allow further down

Then give edit privelege for a specific article to the manager usergroup via

  • either directly (edit the article as super admin and give edit to usergroup Manager)
  • or do same for the category of the article (edit the article as super admin and give edit to usergroup Manager)

Expected result

If a "manager" user logins to backend and tries to edit it, then he will be able to do so

Actual result

The article manager indeed lists it as editable, but clicking on it , edit is denied

System information (as much as possible)

J3.6.1 / J3.6.2

Additional comments

Problem is with new code at allowEdit() method of (backend) article controler
i had made a comment directly on the code about the problem,

  • but i should have opened and issue ?

Here is my comment
fd72a9f#commitcomment-18521573

Fix is obvious,
and code seemed obviously wrong,

  • just i was hesitant to insist that code is bad, without testing, so i think i opened this issue a little too late as J3.6.2 has been released

at least fix is easy

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions