?
avatar roscofil
roscofil
24 Nov 2020

Hello all,

First, pls forgive my limited experience here as I'm by no means a core Joomla dev:

I am cstomizing the Joomshopping component for a website I manage and I ran reently into an interesting question: In JoomShopping, some tools are only available to admins using the $user->authorise function.
However, it turns out that if Superusers can view and access these tools, it is not true for Administrators.

Codeline involved is: $access["module_name"] = $user->authorise('core.admin', 'com_jshopping')==1;

With core.admin being set, the administrator cannot use the tool whereas the superuser can.

The only way I could make it work is by changing the line to:

$access["module_name"] = $user->authorise('core.manage', 'com_jshopping')==1;

First question is: am I misunderstanding anything or making any mistake here?
Second question is: if I make a mistake can somebody tell me how to fix this, otherwise what happens here?

Thanks

Philippe

Steps to reproduce the issue

Expected result

Actual result

System information (as much as possible)

Additional comments

avatar roscofil roscofil - open - 24 Nov 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Nov 2020
avatar Bakual
Bakual - comment - 24 Nov 2020

This is the issue tracker for Joomla Core. It's not a support forum.
For support questions you can use http://forum.joomla.org/ or https://joomla.stackexchange.com/ or the developer of the extensions you're having troubles with.

avatar Bakual Bakual - change - 24 Nov 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-11-24 11:43:39
Closed_By Bakual
avatar joomla-cms-bot joomla-cms-bot - change - 24 Nov 2020
Closed_By Bakual joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 24 Nov 2020
avatar joomla-cms-bot
joomla-cms-bot - comment - 24 Nov 2020

Set to "closed" on behalf of @Bakual by The JTracker Application at issues.joomla.org/joomla-cms/31472

avatar roscofil
roscofil - comment - 24 Nov 2020

True, except that, if I’m right, there’s no “development” or “customization” zone on http://forum.joomla.org/ and since this is linked to a basic functionality of Joomla, the extension developer will kick me out.

De : Thomas Hunziker notifications@github.com
Envoyé : mardi 24 novembre 2020 12:43
À : joomla/joomla-cms joomla-cms@noreply.github.com
Cc : roscofil roscofil@live.fr; Author author@noreply.github.com
Objet : Re: [joomla/joomla-cms] Question about Users Authorise function (#31472)

This is the issue tracker for Joomla Core. It's not a support forum.
For support questions you can use http://forum.joomla.org/ or https://joomla.stackexchange.com/ or the developer of the extensions you're having troubles with.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub#31472 (comment), or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH7ZJE7TCIUWX7MNTVVMBSLSROL4XANCNFSM4UAYB45A.

avatar Bakual
Bakual - comment - 24 Nov 2020

True, except that, if I’m right, there’s no “development” or “customization” zone on http://forum.joomla.org/

You can also use https://groups.google.com/g/joomla-dev-general if that fits you more.

since this is linked to a basic functionality of Joomla, the extension developer will kick me out.

I'm sure he could still help you. You're still wrong here.

avatar roscofil
roscofil - comment - 24 Nov 2020

I'm sure he could still help you. You're still wrong here.

Nice and gentle way to welcome new folks….

avatar Bakual
Bakual - comment - 24 Nov 2020

Sorry for that harsh response.
I've pointed you to four different better suited places where you can get the help you want.

avatar roscofil
roscofil - comment - 24 Nov 2020

Thx

De : Thomas Hunziker notifications@github.com
Envoyé : mardi 24 novembre 2020 13:05
À : joomla/joomla-cms joomla-cms@noreply.github.com
Cc : roscofil roscofil@live.fr; Author author@noreply.github.com
Objet : Re: [joomla/joomla-cms] Question about Users Authorise function (#31472)

Sorry for that harsh response.
I've pointed you to four different better suited places where you can get the help you want.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub#31472 (comment), or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH7ZJEY7XNOWKZBYT7JSYGDSROOPXANCNFSM4UAYB45A.

avatar HLeithner
HLeithner - comment - 24 Nov 2020

@roscofil you have to give "Configure ACL & Options" rights to the administrator and should ask Joomshopping maintainer to change this if you feel it's wrong.

Add a Comment

Login with GitHub to post a comment