feat(project): 4-tier roles (super/admin/pro/user), meeting header 구분

- app.store: role "pro" (ROLES, ROLE_LABELS); admin page grade select
  Admin / Pro user / User, super admin fixed to one account.
- project.access: role_of, is_pro, is_project_admin.
- router: _require_admin -> _require_pro (goals, meetings complete/delete,
  members, reorder, trash restore, assignable users); new project and
  project edit/owner change need Pro user+; task delete open to any member;
  project/section delete = Admin+ or creator; comment edit/delete of others
  and workload summary = Pro user+. Templates get pj_pro / pj_admin.
- Weekly meeting table first header "구역" -> "구분".
- Docs (CLAUDE.md, PROJECT_MODULE 6-14, overview, help page) and tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 01:10:25 +09:00
parent 061f18d081
commit 5d054e59b6
26 changed files with 600 additions and 285 deletions
+19 -9
View File
@@ -97,8 +97,9 @@
<input type="email" name="email" required placeholder="email@dbxcorp.co.kr" style="width: 220px;" />
<input type="text" name="name" placeholder="이름(선택)" style="width: 120px;" />
<select name="role">
<option value="user">user</option>
<option value="admin">admin</option>
{% for r in roles | reverse %}
<option value="{{ r }}">{{ role_labels[r] }}</option>
{% endfor %}
</select>
<button type="submit" class="erp-btn erp-btn-primary">사용자 추가</button>
</form>
@@ -109,7 +110,7 @@
<thead>
<tr>
<th style="width: 200px;">사용자</th>
<th style="width: 80px;">역할</th>
<th style="width: 110px;">등급</th>
<th>접근 권한 <span class="erp-mod-group">클릭하여 토글</span></th>
<th style="width: 110px;">최근 로그인</th>
<th style="width: 130px; text-align: right;">동작</th>
@@ -138,11 +139,18 @@
</div>
</td>
<td>
<select class="erp-select" data-field="role"
{% if u.is_super_admin %}disabled{% endif %}>
<option value="user" {% if u.role == 'user' %}selected{% endif %}>user</option>
<option value="admin" {% if u.role == 'admin' %}selected{% endif %}>admin</option>
{# 수퍼관리자는 한 명으로 고정 — 등급을 바꾸거나 다른 사람을 수퍼관리자로 만들 수 없다. #}
{% if u.is_super_admin %}
<select class="erp-select" data-field="role" disabled>
<option value="admin" selected>수퍼관리자</option>
</select>
{% else %}
<select class="erp-select" data-field="role">
{% for r in roles %}
<option value="{{ r }}" {% if u.role == r %}selected{% endif %}>{{ role_labels[r] }}</option>
{% endfor %}
</select>
{% endif %}
</td>
<td class="erp-perm-cell">
{% for key in module_keys %}
@@ -175,8 +183,10 @@
</div>
<p class="erp-section-meta" style="margin-top: var(--sp-16);">
※ <strong>{{ super_admin_email }}</strong> 은(는) 슈퍼 관리자, 권한 변경/삭제 불가(항상 전체 접근).
admin 역할은 기본 전체 ON 이지만 슈퍼관리자가 개별 프로그램 접근을 끌 수 있다.
※ 등급: <strong>수퍼관리자</strong>(<strong>{{ super_admin_email }}</strong> 한 명 고정 — 권한 변경/삭제 불가, 항상 전체 접근, 더 추가할 수 없음)
&gt; <strong>Admin</strong> &gt; <strong>Pro user</strong> &gt; <strong>User</strong>.
Admin 은 기본 전체 ON 이지만 슈퍼관리자가 개별 프로그램 접근을 끌 수 있다.
Pro user 는 Project 모듈(프로젝트·목표·주간 회의록)에서 프로젝트 만들기·수정·멤버 배정·휴지통·목표 입력·회의 완료 등을 할 수 있고, 다른 모듈에서는 User 와 같다.
<code>expense_approver</code> / <code>vacation_approver</code> 는 결재 승인 권한.
</p>