Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: add new domain join logic #886

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

core: add new domain join logic #886

wants to merge 2 commits into from

Conversation

undefined-moe
Copy link
Member

引入 【加入域】 概念使其更符合直觉,同时提供退出域功能

  • 是否应当将未加入域的用户作为 guest 权限组管理?

@pandadtdyy
Copy link
Member

我认为应当允许用户设置为私密域/公开域(guest/default)

@undefined-moe
Copy link
Member Author

guest: N/A default: PERM_VIEW 则普通用户访问跳转到 /domain/join,未登录用户跳转登录
guest: PERM_VIEW, default: PERM_VIEW 则普通用户和未登录用户均可直接访问

@undefined-moe
Copy link
Member Author

guest: PERM_VIEW, default: PERM_VIEW, PERM_SUBMIT_PROBLEM
旧逻辑:访客 (guest) 可注册后 (default) 提交题目,成为域成员 (default)
新逻辑:访客 (guest) 可注册后 (guest) 无法提交题目 (如何引导?)

对主域的管理:
若新用户注册后自动加入 system,则域内榜单会出现大量无操作用户;
若不自动加入,则注册后用户仍需前往 /domain/join 手动完成加入域操作;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants