end;
_ ->
unauthorized_response()
- end.
+ end;
+check_permissions2(_Request, _Call, _Policy) ->
+ unauthorized_response().
oauth_check_token(Scope, Token) when is_atom(Scope) ->
oauth_check_token(atom_to_binary(Scope, utf8), Token);
{200, _, _} = :mod_http_api.process(["open_cmd"], request)
end
- @tag pending: true
test "Call to user, admin, restricted commands without authentication are rejected" do
request = request(method: :POST, data: "[]")
{401, _, _} = :mod_http_api.process(["user_cmd"], request)