anchor.diff:              add_access(grant, TargetType, TargetId, Type, Id)
       end.
   
  +%% Check to see if requestor has permission on target
   check_access(TargetType, TargetId, RequestorId, Permission) ->
       case RequestorId of
           superuser ->
  
positive.code:             throw({db_error, Error})
      end.
  
  add_access_set(_Perm, _Type, _Id, _OtherType, []) ->
      ok;
  add_access_set(Permission, TargetType, TargetId, AuthorizeeType,
  
negative.code:             List
      end.
  
  %% Create EJSON object fragment for permission type on given ID
  make_ejson_part(Permission, ForType, ForId) ->
      {Permission,
       {[{<<"actors">>,
  