? Pending

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
7 Aug 2016

Pull Request for Issue #11466 (com_newsfeeds part).

Summary of Changes

The ACL core.edit.own is not working in newsfeeds.
This PR makes it work.

Testing Instructions

  1. Use latest staging
  2. Besides the Super User, create a user "test" added to "Administrator" group
  3. Go to com_newsfeeds Options, Permissions tab and diable "Edit" for "Administrator" group
  4. Now create a new newsfeed with the "test" user (use another browser or a private window)
  5. Try to edit that item. You can't edit our own. Bug
  6. Now do the same test but with a newsfeed category Permission. You can't edit our own. Bug
  7. Apply patch, repeat step 5. and 6. and now you can edit our own items.
  8. Code review

Also use the two users to do a general test with the com_newsfeeds edit permissions to confirm all is fine.

Documentation Changes Required

None.

Notes

This problem was discovered in GsoC 2016 Multilingual project.
This is very similiar with #11503.

avatar joomla-cms-bot joomla-cms-bot - change - 7 Aug 2016
Category Administration Components
avatar andrepereiradasilva andrepereiradasilva - open - 7 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 7 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Aug 2016
Labels Added: ?
avatar andrepereiradasilva andrepereiradasilva - change - 7 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 7 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 7 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 7 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 7 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 7 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - edited - 7 Aug 2016
avatar ggppdk
ggppdk - comment - 7 Aug 2016

I have not tested this, but it looks good on code review

avatar infograf768 infograf768 - test_item - 7 Aug 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 7 Aug 2016

I have tested this item successfully on e31bdd9


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

avatar infograf768 infograf768 - test_item - 7 Aug 2016 - Tested unsuccessfully
avatar infograf768
infograf768 - comment - 7 Aug 2016

I have tested this item ? unsuccessfully on e31bdd9

Changed my testing as we get a Notice (same as for contacts):

[07-Aug-2016 07:12:14 UTC] PHP Notice: Undefined variable: record in ROOT/administrator/components/com_newsfeeds/controllers/newsfeed.php on line 83


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

avatar ggppdk
ggppdk - comment - 7 Aug 2016

Yes variable name is $item not $record

avatar andrepereiradasilva
andrepereiradasilva - comment - 7 Aug 2016

sorry guys. corrected that. please test.

avatar alikon
alikon - comment - 7 Aug 2016

no more notice after the last update

avatar alikon alikon - test_item - 7 Aug 2016 - Tested successfully
avatar alikon
alikon - comment - 7 Aug 2016

I have tested this item successfully on 02ba804


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

avatar infograf768 infograf768 - test_item - 7 Aug 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 7 Aug 2016

I have tested this item successfully on 02ba804


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

avatar infograf768 infograf768 - change - 7 Aug 2016
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 7 Aug 2016

RTC. Thanks


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

avatar joomla-cms-bot joomla-cms-bot - change - 7 Aug 2016
Labels Added: ?
avatar rdeutz rdeutz - close - 14 Aug 2016
avatar rdeutz rdeutz - merge - 14 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - close - 14 Aug 2016
avatar rdeutz rdeutz - change - 14 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-14 16:20:22
Closed_By rdeutz
avatar joomla-cms-bot joomla-cms-bot - change - 14 Aug 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment