- ws_authorized(+Action, +WSUser) is semidet
- True when WSUser is allowed to perform action. WSUser is a dict
containing the user info as provided by chat_add_user_id/3. It
notably has a key
profile_id
if the user is logged on.
- To be done
- - Generalise. Notably, how do we get the identity as
authenticate/2 returns?