-
ROot case: frontend: ProjectLayout.tsx that Cretes project menus uses canManage to decide if the current user should be allowed to manage the project: canManager only checks if MAINTAINER role:
// src/pages/projects/ProjectLayout.tsx const canManage = hasAtLeast("MAINTAINER");Fix: canManage shud include ADMIN role:
// src/pages/projects/ProjectLayout.tsx //... import { useAuth } from "../../context/AuthContext"; //... const { user } = useAuth(); const isSystemAdmin = user?.roles?.includes('ADMIN') ?? false; const canManage = hasAtLeast("MAINTAINER") || isSystemAdmin; -
rksuma@Ramakrishnans-MacBook-Pro sztab % git add frontend/src/pages/projects/ProjectLayout.tsx git commit -m "SZ-152: Admin can access project Settings and Pull Requests tabs on all projects" git push origin wolnosc [wolnosc 8d8d3b2] SZ-152: Admin can access project Settings and Pull Requests tabs on all projects 1 file changed, 6 insertions(+), 2 deletions(-) Enumerating objects: 13, done. Counting objects: 100% (13/13), done. Delta compression using up to 12 threads Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7), 775 bytes | 775.00 KiB/s, done. Total 7 (delta 6), reused 0 (delta 0), pack-reused 0 (from 0) To https://tigase.dev/sztab.git ccfea68..8d8d3b2 wolnosc -> wolnosc rksuma@Ramakrishnans-MacBook-Pro sztab %
| Type |
Bug
|
| Priority |
Major
|
| Assignee | |
| Version |
1.10.1
|
| Sprints |
n/a
|
| Customer |
n/a
|
Issue Votes (0)
Admin cannot access project settings for projects created by other users.