? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
7 Nov 2016

Summary of Changes

The categories ACL for displaying the batch button is not correct. It's based on a extension var that is not correct, for instance in com_fields groups the asset name is com_contentarticlefields when it should be com_content.

Testing Instructions

  1. Code review.
  2. Test if "Batch" button appears on com_content field groups when a user is not able to core.create.
  3. Apply patch
  4. Repeat step 2, no button now

Documentation Changes Required

None.

avatar andrepereiradasilva andrepereiradasilva - open - 7 Nov 2016
avatar andrepereiradasilva andrepereiradasilva - change - 7 Nov 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Nov 2016
Category Administration Components
avatar Bakual
Bakual - comment - 7 Nov 2016

That sounds wrong. com_categories doesn't have own ACL rules. It uses the ones from the extensions.
if you remove that check, it means the global ACL settings will be used instead of the component specific ones.
If that doesn't work for com_fields, it is an issue in com_fields and how it handles its groups. It's not something that has to be changed (and even less removed!) in com_categories.

avatar infograf768
infograf768 - comment - 7 Nov 2016

PLus the fact that it has been decided that com_field architecture may be changed to not use com_categories anymore...

avatar andrepereiradasilva
andrepereiradasilva - comment - 7 Nov 2016

This is not a com_fields errors, in the core it only manifests in com_fields because it's the only one, for now, that uses component.item format extension.

cando it's used all over this toolbar method and it's using the component acl.
Please test.

avatar Bakual
Bakual - comment - 7 Nov 2016

Ah I see, you're right ?

avatar laoneo
laoneo - comment - 7 Nov 2016

PLus the fact that it has been decided that com_field architecture may be changed to not use com_categories anymore

Is this decision made public somewhere? I would not do that?

avatar andrepereiradasilva
andrepereiradasilva - comment - 7 Nov 2016

please don't turn this PR into a com_fields discussion.

as said, this Pr as nothing to do with com_fields, just only manifests in com_fields because the core doesn't have any other category that uses component.item format extension.

avatar andrepereiradasilva andrepereiradasilva - change - 7 Nov 2016
Title
[com_categories categories view] Correct ACL for display batch button
[ACL] [com_categories categories view] Correct when display batch button
avatar andrepereiradasilva andrepereiradasilva - change - 7 Nov 2016
Title
[com_categories categories view] Correct ACL for display batch button
[ACL] [com_categories categories view] Correct when display batch button
avatar andrepereiradasilva andrepereiradasilva - edited - 7 Nov 2016
avatar ggppdk
ggppdk - comment - 11 Nov 2016

A lot of PRs lately are missing SHA in the issue tracker, and tests cannot be submitted

avatar sanderpotjer sanderpotjer - test_item - 13 Nov 2016 - Tested successfully
avatar sanderpotjer
sanderpotjer - comment - 13 Nov 2016

I have tested this item successfully on 546e35d

The test instructions not really working for me, the Batch button is not showing before & after when the core.create action is not allowed.

However, I do agree with the code changes and the change of the context into the component.


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

avatar ggppdk
ggppdk - comment - 13 Nov 2016

I have tested this item successfully on 546e35d


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

avatar ggppdk ggppdk - test_item - 13 Nov 2016 - Tested successfully
avatar brianteeman brianteeman - change - 13 Nov 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 13 Nov 2016

RTC


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

avatar brianteeman brianteeman - change - 13 Nov 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 13 Nov 2016
Milestone Added:
avatar rdeutz rdeutz - change - 15 Nov 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-11-15 21:41:01
Closed_By rdeutz
avatar rdeutz rdeutz - close - 15 Nov 2016
avatar rdeutz rdeutz - merge - 15 Nov 2016
avatar rdeutz rdeutz - reference | c584c48 - 15 Nov 16
avatar rdeutz rdeutz - merge - 15 Nov 2016
avatar rdeutz rdeutz - close - 15 Nov 2016
avatar joomla-cms-bot joomla-cms-bot - change - 15 Nov 2016
Category Administration Components Administration com_categories Components
avatar andrepereiradasilva andrepereiradasilva - head_ref_deleted - 15 Nov 2016

Add a Comment

Login with GitHub to post a comment