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

Debug permissions in com_users #14408

Merged
merged 18 commits into from
Mar 10, 2017
Merged

Conversation

Bakual
Copy link
Contributor

@Bakual Bakual commented Mar 7, 2017

We have a very nice and helpful view for "debugging" issues with user permissions. But that view is only available when "Debug System" is enabled in the global configuration. If it's disabled (like in normal production) the link to it is hidden.

Summary of Changes

This PR adds two new options in the user manager which will allow to enable/disable that "Debug" "Advanced" view for the user and usergroup manager. Making the view more known.
The new options are enabled by default since there is no drawback to have them enabled. It's just a link shown. Also it will be B/C for those who had Debug enabled for whatever reason.

Testing Instructions

  • Apply the PR and test the new links right below each user/usergroup.
  • Disable the option in the component options and make sure the link no longer appears.

Expected result

Have a link to those views not depending on Debug status.

Actual result

Links only shown when Debug is active.

Documentation Changes Required

Maybe tutorials need to be adjusted.

Disclaimer

Work is done by @brianteeman

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-staging labels Mar 7, 2017
@ghost
Copy link

ghost commented Mar 7, 2017

I have tested this item ✅ successfully on 1fff9dd


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

@dgrammatiko
Copy link
Contributor

I have tested this item ✅ successfully on 1fff9dd

Great #UX improvement. Thanks Brian


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

@joomla-cms-bot joomla-cms-bot removed Language Change This is for Translators PR-staging labels Mar 7, 2017
@jeckodevelopment
Copy link
Member

@Bakual can you fix conflicts, please?

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 7, 2017
@jeckodevelopment jeckodevelopment removed the RTC This Pull Request is Ready To Commit label Mar 7, 2017
@jeckodevelopment
Copy link
Member

Back to Pending due to conflicting files.


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

@jeckodevelopment jeckodevelopment added Language Change This is for Translators PR-staging labels Mar 7, 2017
@Bakual
Copy link
Contributor Author

Bakual commented Mar 7, 2017

@jeckodevelopment Conflicts are solved now.

@ot2sen
Copy link
Contributor

ot2sen commented Mar 7, 2017

I have tested this item ✅ successfully on fab4401

Very useful. Works well for reporting overview.


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

@alikon
Copy link
Contributor

alikon commented Mar 7, 2017

I have tested this item ✅ successfully on fab4401


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

Just some smal CS fixes for 14408
@jeckodevelopment
Copy link
Member

@alikon and @ot2sen can you please re-test?

@ghost
Copy link

ghost commented Mar 8, 2017

I have tested this item ✅ successfully on 2555c79


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

1 similar comment
@alikon
Copy link
Contributor

alikon commented Mar 8, 2017

I have tested this item ✅ successfully on 2555c79


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

@jeckodevelopment
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 10, 2017
@jeckodevelopment jeckodevelopment added this to the Joomla 3.7.0 milestone Mar 10, 2017
rdeutz pushed a commit that referenced this pull request Mar 10, 2017
* Add a fieldset in the component config to support disabling the debug users and groups view. The defaullt is to on

* Add code to read the params from the config.xml
If not set then it defaults to ON

Change the IF statement use to turn on the display of the debug link to use the param instead of the JDEBUG

* Add code to read the params from the config.xml
If not set then it defaults to ON

* Change the IF statement use to turn on the display of the debug link to use the param instead of the JDEBUG

* fix the params IF statement

* Fix the params fallback

* Add language strings

* Add missing Cancel button from toolbar (replaces PR14384)

Add missing Options button from toolbar

* Simplify param check

* Simplify param check #2

* change the strings from debug to advanced

* fix toolbar permissions check

* Update config.xml

* Update default.php

* Update default.php
@rdeutz rdeutz merged commit e354185 into joomla:staging Mar 10, 2017
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 10, 2017
@brianteeman brianteeman deleted the debug-permissions branch March 14, 2017 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language Change This is for Translators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants