Wsdataselect.Plug.Authorization (wsdataselect v1.1.21)

Copy Markdown View Source

Summary

Functions

Get all the closed networks from database, extended form. Make a map of those, with empty authorized users list. Merge with the authorized users

Functions

build_authorizations()

@spec build_authorizations() :: map()

Get all the closed networks from database, extended form. Make a map of those, with empty authorized users list. Merge with the authorized users

call(conn, opts)

get_authorizations()

get_forbidden_networks(user)

@spec get_forbidden_networks(String.t()) :: [String.t()]

init(opts)