anchor.diff:           make_ejson_action/3,
            parse_acl_json/2]).
   
  +%% Add permission on target for authorizee
   add_access(Permission, TargetType, TargetId, AuthorizeeType, AuthorizeeId) ->
       case heimdall_db:create_ace(TargetType, TargetId, AuthorizeeType, AuthorizeeId,
                                   atom_to_list(Permission)) of
  
positive.code:             add_access(grant, TargetType, TargetId, Type, Id)
      end.
  
  check_access(TargetType, TargetId, RequestorId, Permission) ->
      case RequestorId of
          superuser ->
  
negative.code:     add_access_set(Permission, TargetType, TargetId, AuthorizeeType,
                     AuthorizeeList).
  
  %% Add all permissions on target for authorizee
  add_full_access(TargetType, TargetId, AuthorizeeType, AuthorizeeId) ->
      case {AuthorizeeType, AuthorizeeId} of
          {actor, undefined} ->
  