mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
user_groups: Add function for determining group creation permissions.
Earlier in frontend there was a single function to determine whether user can create and edit user groups. This commit adds a separate function for determining group creation permissions.
This commit is contained in:
@@ -726,7 +726,7 @@ export function setup_page(callback) {
|
||||
|
||||
function populate_and_fill() {
|
||||
const template_data = {
|
||||
can_create_or_edit_user_groups: settings_data.user_can_edit_user_groups(),
|
||||
can_create_user_groups: settings_data.user_can_create_user_groups(),
|
||||
max_user_group_name_length,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user