anchor.diff:      %% TODO check user creator privileges
       get_group_user_privileges(GID, UserId2, UserReqParams2),
   
  -    Privileges =
  -        [
  -            group_view_data, group_change_data, group_invite_user,group_set_privileges
  -%%  ,           group_remove_user, group_join_space,
  -%%             group_create_space, group_remove, group_leave_space,
  -%%              group_create_space_token
  -        ],
  +    SID = create_space_for_user(?SPACE_NAME1, UserReqParams2),
  +
       ?assertMatch(
           ok,
  -        group_privileges_check(Privileges, {UserId1, UserReqParams1}, {UserId2, UserReqParams2}, GID)
  +        group_privileges_check(
  +            ?GROUP_PRIVILEGES, {UserId1, UserReqParams1}, {UserId2, UserReqParams2}, GID, SID
  +        )
       ).
   
   group_spaces_test(Config) ->
  
positive.code:     ?assertMatch(
          ok,
          check_status(update_group(GID, ?GROUP_NAME2, UserReqParams2))
      );
  group_privileges_check(group_invite_user, UserData1, UserData2, GID) ->
      {UserId1, UserReqParams1} = UserData1,
      {UserId2, UserReqParams2} = UserData2,
  
       %% test if user2 lacks group_change_data privileges
      ?assertMatch(
          bad,
          check_status(get_group_invitation_token(GID, UserReqParams2))
  
negative.code:                 group_spaces_test
              ]
  
          },
          {
              spaces_rest_module_test_group,
              [],
              [
                  spaces_crud_test
              ]
          }
      ].
  
  