Yes, it does depend upon how what exactly you mean by 'admin' and how you've configured your site.
The list of administrator-like permissions is given in the Permission Actions section at https://manual.joomla.org/docs/general- ... ermissions so you can use $user->authorise() to check for any of these.
Also the administrator back-end can be viewed only by people with the Special access level. So another possibility would be to use
$levels = $user->getAuthorisedViewLevels();
and check that the id for Special is in the returned $levels, as described in https://manual.joomla.org/docs/general- ... acl-access
The list of administrator-like permissions is given in the Permission Actions section at https://manual.joomla.org/docs/general- ... ermissions so you can use $user->authorise() to check for any of these.
Also the administrator back-end can be viewed only by people with the Special access level. So another possibility would be to use
$levels = $user->getAuthorisedViewLevels();
and check that the id for Special is in the returned $levels, as described in https://manual.joomla.org/docs/general- ... acl-access
Statistics: Posted by robbiej — Wed Jul 03, 2024 8:21 am