[buddypress-trac] [BuddyPress Trac] #5983: groups can be created with creator_id = 0

buddypress-trac noreply at wordpress.org
Mon Nov 3 18:26:27 UTC 2014


#5983: groups can be created with creator_id = 0
--------------------------+---------------------
 Reporter:  DJPaul        |       Owner:  djpaul
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  2.2
Component:  Groups        |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------
Changes (by djpaul):

 * owner:   => djpaul
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9121"]:
 {{{
 #!CommitTicketReference repository="" revision="9121"
 Groups, Unit Tests: a `creator_id` must be passed to `groups_create_group`
 to create a group.

 Some of our unit tests were built to assume that they would always run
 with an authenticated user, but obviously this was incorrect. As a result,
 Groups were being created with `creator_id=0`, which was breaking other
 parts of the codebase, for certain tests.

 This change also removes the `test_creating_new_group_as_anonymous_user`
 test that I added in r9118 which is now unnecessary.

 See r9117, r9118, r9120 for other parts of this fix.
 Fixes #5983 and the unit tests. :)
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5983#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list