mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:21:12 +08:00
FEATURE: support group owner, capable of controlling group membership
Group owners are regular users that can add or remove users to a group The Admin UX allows admins to appoint group owners The public group UX will display group owners first and unlock UI to add and remove members Group owners can only be appointed on non automatic groups Group owners may not appoint another group owner
This commit is contained in:
@ -939,7 +939,7 @@ describe TopicsController do
|
||||
|
||||
describe 'when logged in as group manager' do
|
||||
let(:group_manager) { log_in }
|
||||
let(:group) { Fabricate(:group).tap { |g| g.add(group_manager); g.appoint_manager(group_manager) } }
|
||||
let(:group) { Fabricate(:group).tap { |g| g.add_owner(group_manager) } }
|
||||
let(:private_category) { Fabricate(:private_category, group: group) }
|
||||
let(:group_private_topic) { Fabricate(:topic, category: private_category, user: group_manager) }
|
||||
let(:recipient) { 'jake@adventuretime.ooo' }
|
||||
|
Reference in New Issue
Block a user