$user->hasPanelAccess()

Checks if the user is allowed to access the Panel based on the role.

  • return (boolean)

Example

<?php if($user = $site->user() and $user->hasPanelAccess()): ?>
This super secret content is only visible for users with Panel access
<?php endif ?>

Is something missing or incorrect? Edit this page on Github…