feat(api): optional auth for public search and studio week. Refs EventHub/EventHubFront#58
This commit is contained in:
@@ -94,7 +94,7 @@ has_user_binding(Req) ->
|
||||
cowboy_req:binding(user_id, Req) =/= undefined.
|
||||
|
||||
list_specialists(Req) ->
|
||||
case handler_utils:auth_user(Req) of
|
||||
case handler_utils:auth_user_optional(Req) of
|
||||
{ok, UserId, Req1} ->
|
||||
CalendarId = cowboy_req:binding(id, Req1),
|
||||
case logic_calendar_specialist:list(UserId, CalendarId) of
|
||||
|
||||
Reference in New Issue
Block a user