Support

Admin Tools

#30051 Front-end access email notifications

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Tuesday, 07 August 2018 01:04 CDT

iorbita
Hello,
is it possible to receive an email notification when a user connects to the administration of the site from the front-end (not necessarily a SuperAdministrator)

Thank you,

Lorenzo

nicholas
Akeeba Staff
Manager
Joomla allows you to give administrative powers to any user group for specific components, categories or even specific articles. Therefore the definition of a front-end "administrator" is very lax. If we were to generalise it to make it useful for everyone that would encompass any user logging into your site which beats the point of having this feature in the first place.

Please note that in your particular use case you might be able to define the "front-end administrator" as someone who belongs to specific user groups. The same may not apply for other people.

That's why we can't implement such a feature in a way which would be meaningful for everyone.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

iorbita
ok, you are right, maybe I should say "user who logs in front-end to edit parts of the site";
... thanks for this clarification :)

Lorenzo

nicholas
Akeeba Staff
Manager
So, this is the thing that's not very clear :) What are the "parts of the site"? And what is "edit"? I will give you some examples.

Editing modules. This requires having the core.edit privilege either globally or in com_modules. You could say this is easy to determine by checking if you have such a privilege. But you'd actually have to check for all possible permissions giving "admin" privileges, whatever that is, both core and per-component and for each and every component. This starts becoming hairy since it requires a substantial amount of configuration: you have to tell Admin Tools which permissions are to be considered "admin" for each component.

Editing articles. Now, that's complicated. The permissions may be set globally, in com_content, in the category of the articles or just for that specific article. Moreover, there are two kinds of possible permissions, core.edit (edit any applicable article) or core.edit_own (only edit articles owned by you). Determining who is an "admin" is incredibly complicated: you would need to check the permissions for each and every article on your site. If you have 10 articles it's fast. If you have 100 it's becoming slow. At 1000 articles (half as much on our own, small, site) it's slowing down your site considerably. At 10,000 articles your sire no longer loads on most servers.

If you keep on following this line of thought you will see that providing a generally useful feature is not possible. The only thing one could do is send notification emails when specific user groups, selected by the user, log into the front-end of the site. The downside to that is that it's not something which can be automatically configured. You'd still need to tell it which user groups are considered "front-end admins".

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

iorbita
Maybe I should have been more specific from the beginning.
I have a user group that has been created with access rights specific to this group.

Everything has been fine-tuned for plugins, modules and articles and this for the backend and the front end.
Since it's the first time that users of this group will have access to the site, I just wanted to be notified when they will edit articles and modules in front-end in order to carefully follow their changes.

Anyway I found a plugin that exactly meets my expectations ( https://www.function90.com/products/free/login-notify.html )

Thank you for all your explanations!

Lorenzo

nicholas
Akeeba Staff
Manager
OK, that makes more sense. You want to be notified when users belonging to a specific user group log into the site. I agree that using a third party plugin is the best approach.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!