src/Policies/UserPolicy.php
public function view($user)
    {
        $user = User::findOrFail($user->id);

        return $user->hasPermission('laralum::users.view') || $user->superAdmin();
    }
public function view($user)
    {
        $user = User::findOrFail($user->id);

        return $user->hasPermission('laralum::users.view') || $user->superAdmin();
    }
public function view ( $ user ) { $ user = User :: findOrFail ( $ user -> id ) ; return $ user -> hasPermission ( 'laralum::users.view' ) || $ user -> superAdmin ( ) ; }
Determine if the current user can view users.

@param mixed $user

@return bool
Determine if the current user can view users .