Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
ggppdk committed Aug 22, 2017
1 parent deda905 commit 409f8a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/src/Access/Access.php
Expand Up @@ -1073,7 +1073,10 @@ public static function getAuthorisedViewLevels($userId)
$user = \JUser::getInstance($userId);
$root_user = \JFactory::getConfig()->get('root_user');

if (($user->username && $user->username == $root_user) || (is_numeric($root_user) && $user->id > 0 && $user->id == $root_user))
if (
($user->username && $user->username == $root_user) ||
(is_numeric($root_user) && $user->id > 0 && $user->id == $root_user)
)
{
// Find the super user levels.
foreach (self::$viewLevels as $level => $rule)
Expand Down

0 comments on commit 409f8a5

Please sign in to comment.