Mpociot\Teamwork\Traits\UsedByTeams::teamGuard PHP Method

teamGuard() protected static method

protected static teamGuard ( )
    protected static function teamGuard()
    {
        if (auth()->guest() || !auth()->user()->currentTeam) {
            throw new Exception('No authenticated user with selected team present.');
        }
    }