anchor.diff:  %% @end
   %% ====================================================================
   -spec get_effective_privileges(SpaceId :: binary(), UserId :: binary()) ->
  -    ordsets:ordset(privileges:space_privilege()).
  +    {ok, ordsets:ordset(privileges:space_privilege())}.
   %% ====================================================================
   get_effective_privileges(SpaceId, UserId) ->
       #user{groups = UGroups} = dao_adapter:user(UserId),
  
positive.code:     case has_effective_user(SpaceId, UserId) of
          false -> false;
          true ->
              UserPrivileges = get_effective_privileges(SpaceId, UserId),
              ordsets:is_element(Privilege, UserPrivileges)
      end.
  
  
negative.code:             false -> ordsets:new()
          end,
  
      {ok, ordsets:union([UserPrivileges | PrivilegesSets])}.
  
  
  %% set_privileges_aux/3
  