? Pending
Pull Request for # 8069

User tests: Successful: Unsuccessful:

avatar n9iels
n9iels
13 Oct 2015

This PR will fix a part of the issues described in #8069

The issue

A user with ACL right to create, delete, edit, edit State, edit own in a specified category can also create new categories on the first level. (no parent)

How to test

  1. Create a usergroup with registered as parent
  2. Select that group in the "Special" view/access level
  3. In Global configuration, allow Administrator Login for this group
  4. In the Global options of Articles, Categories and Featured Articles set "Access Administrator interface" to Allowd for that group
  5. Create a new category and set the permissions of hat categories for the new user group for the following item on allowed:
    • Create
    • Delete
    • Edit
    • Edit state
    • Edit Own
  6. Create a new user for the created user group
  7. Login with the user on the back-end
  8. Click on the create button and notice you can create a category for "no parent"
  9. Apply patch, and notice you can't create categories for "no parent" any more

Note

Can someone please review if this is a good solution? I know it solves the issue, but I don't know exactly why that piece of code was placed

avatar n9iels n9iels - open - 13 Oct 2015
avatar n9iels n9iels - change - 13 Oct 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Oct 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 13 Oct 2015
Category Administration UI/UX
avatar zero-24 zero-24 - change - 13 Oct 2015
Rel_Number 0 8069
Relation Type Pull Request for
Easy No Yes
avatar zero-24
zero-24 - comment - 13 Oct 2015

@n9iels that code was added here by @sanderpotjer see #3401


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8083.

avatar n9iels
n9iels - comment - 13 Oct 2015

@zero-24 thanks, I couldn't find that.

Difficult situation, the solution of #3401 cause this one.
So we have to find a solution that makes sure that:

  • Level 0 will not unset if the the parameter "Create" is set on allowed in: Article -> Permissions
  • Level 0 will unset in other situations (assuming that creating categories on level 0 is only allowed when you have full create access)
avatar Webdongle Webdongle - test_item - 13 Oct 2015 - Tested successfully
avatar Webdongle
Webdongle - comment - 13 Oct 2015

I have tested this item :white_check_mark: successfully on 4f50046

Works as expected ... Prevents users creating Categories outside of the hierarchy of the Category they have Edit Permission for


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8083.

avatar Webdongle Webdongle - test_item - 13 Oct 2015 - Tested successfully
avatar n9iels
n9iels - comment - 13 Oct 2015

@Webdongle Thanks for testing! But it seems like the solution for this issue is not ready yet. Please test again when we have good solution :)

avatar Webdongle
Webdongle - comment - 13 Oct 2015

OK ... as soon as I get the email will test it

avatar zero-24 zero-24 - change - 20 Oct 2015
Status Pending Needs Review
Easy Yes No
avatar designbengel
designbengel - comment - 24 Oct 2015

I canĀ“t access anything to create content (before applying the patch)


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8083.

avatar roland-d
roland-d - comment - 14 Apr 2016

Hello @n9iels

Thank you for your contribution.

The last comment here was on 24th October 2015. So the question is, Is this issue/pull request still valid?
If no reply is received within 4 weeks we will close this issue.

Thanks for understanding!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8083.

avatar roland-d roland-d - change - 7 May 2016
Status Needs Review Confirmed
avatar roland-d
roland-d - comment - 7 May 2016

No need for PLT to decide here yet. I have contacted Niels and asked him to update this issue. Let's wait a bit longer before closing this.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8083.

avatar joomla-cms-bot
joomla-cms-bot - comment - 7 May 2016

This PR has received new commits.

CC: @Webdongle


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8083.

avatar joomla-cms-bot
joomla-cms-bot - comment - 7 May 2016

This PR has received new commits.

CC: @Webdongle


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8083.

avatar joomla-cms-bot
joomla-cms-bot - comment - 7 May 2016

This PR has received new commits.

CC: @Webdongle


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8083.

avatar joomla-cms-bot
joomla-cms-bot - comment - 7 May 2016

This PR has received new commits.

CC: @Webdongle


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8083.

avatar brianteeman brianteeman - change - 7 May 2016
Status Confirmed Pending
avatar n9iels
n9iels - comment - 7 May 2016

Ignore the commit, there is on this moment no solution for this problem. Because the - no parent - (level 0) has no access right. So $user->authorise() can't determine if the current has is allowed to edit this level.

I close this PR now.

avatar n9iels n9iels - close - 7 May 2016
avatar n9iels n9iels - change - 7 May 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-05-07 14:54:12
Closed_By n9iels

Add a Comment

Login with GitHub to post a comment