src/Serverfireteam/Panel/libs/dashboard.php
private function showLink ($link)
    {
        if (!$link['show_menu']) return false;

        $user = \Auth::guard('panel')->user();

        return $user->hasRole('super') || $user->hasPermission('/' . $link['url'] . '/all');
    }
private function showLink ($link)
    {
        if (!$link['show_menu']) return false;

        $user = \Auth::guard('panel')->user();

        return $user->hasRole('super') || $user->hasPermission('/' . $link['url'] . '/all');
    }
private function showLink ( $ link ) { if ( ! $ link [ 'show_menu' ] ) return false ; $ user = \ Auth :: guard ( 'panel' ) -> user ( ) ; return $ user -> hasRole ( 'super' ) || $ user -> hasPermission ( '/' . $ link [ 'url' ] . '/all' ) ; }
Determine whether to show the given entity type in the panel
@param $link
@return bool
Determine whether to show the given entity type in the panel