mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
activity: Use realm owners, not realm administrators.
The analytics system was not properly updated when we replaced realm owners with realm administrators.
This commit is contained in:
@@ -83,9 +83,9 @@ class Command(BaseCommand):
|
||||
"Shylock",
|
||||
realm,
|
||||
full_name="Shylock",
|
||||
role=UserProfile.ROLE_REALM_ADMINISTRATOR,
|
||||
role=UserProfile.ROLE_REALM_OWNER,
|
||||
)
|
||||
do_change_user_role(shylock, UserProfile.ROLE_REALM_ADMINISTRATOR, acting_user=None)
|
||||
do_change_user_role(shylock, UserProfile.ROLE_REALM_OWNER, acting_user=None)
|
||||
stream = Stream.objects.create(name="all", realm=realm, date_created=installation_time)
|
||||
recipient = Recipient.objects.create(type_id=stream.id, type=Recipient.STREAM)
|
||||
stream.recipient = recipient
|
||||
|
||||
Reference in New Issue
Block a user