anchor.diff:           ,pass/0
            ,pass/1
            ,perms/1
  +         ,name/1
  +         ,rename/2
            ,id_to_binary/1
            ,binary_to_id/1
            ,grant/2
  
positive.code:             ?WARN("at=reportable_perms op=~p cred_id=~p perms=~p",
                    [Op, Id, ordsets:to_list(Perms)])
      end.
  
negative.code:             end
      end.
  
  %%====================================================================
  %% Internal functions
  %%====================================================================
  
  cred_from_dict(<<"pass">>, Pass, Cred = #cred{}) ->
      Cred#cred{pass = Pass};
  
  cred_from_dict(<<"name">>, Name, Cred = #cred{}) ->
      Cred#cred{name = Name};
  
  cred_from_dict(<<"full_api">>, _, Cred = #cred{perms = Perms}) ->
      Cred#cred{perms = ordsets:add_element(full_api, Perms)};
  