mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +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:
parent
13bf6a6d7b
commit
6dd4bc7d57
27 changed files with 384 additions and 234 deletions
|
@ -45,3 +45,21 @@ class UserProfileView < ActiveRecord::Base
|
|||
profile_views.group("date(viewed_at)").order("date(viewed_at)").count
|
||||
end
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: user_profile_views
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# user_profile_id :integer not null
|
||||
# viewed_at :datetime not null
|
||||
# ip_address :inet not null
|
||||
# user_id :integer
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_user_profile_views_on_user_id (user_id)
|
||||
# index_user_profile_views_on_user_profile_id (user_profile_id)
|
||||
# unique_profile_view_ip (viewed_at,ip_address,user_profile_id) UNIQUE
|
||||
# unique_profile_view_user (viewed_at,user_id,user_profile_id) UNIQUE
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue