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