Okay, I thought I tried that but I guess I didn't. It works if I change the user to "Registered". However, most of my users are ADMINS, isSuperAdmin is a little misleading since Administrators are not actually Super Admins. Is there a way to show only owned to administrators and show ALL to actual Super Admins? Would be nice if we could choose which access level can see only their own sites. Instead of being forced to make users "Registered".
UPDATE
I need to keep my uses as Administrators because, when they create their sites, they are in "offline" mode. Only an Admin can login to an offline site. Not a registered user. However, I need them to be able to see only their sites as Admins. They are not Super Admins, so "isSuperAdmin" is not correct. Can we make it just for SuperAdmins?
I checked the isSuperAdmin function in the admin part and it seems correct. However, the frontend function could be more specific for the uig instead of just an 'edit' permission.
Code: |
// Check if this is a super administrator or an administrator
$user = JFactory::getUser();
$isSuperAdmin = false;
if ($user->authorize( 'com_multisites', 'edit')) {
$isSuperAdmin = true;
}
|
UPDATE 2
Fixed it with changing the code in slaves.php to be like the code in the admin part to detect an actual SuperAdmin, not just 'edit' permission. Where does that 'edit' permission come from? Is that a setting somewhere so I don't have to tweak the core code? Or can you add it as an update?