Skip to content

Give each role its own sidebar - #326

Merged
vikrantwiz02 merged 1 commit into
FusionIIIT:acad-mainfrom
vikrantwiz02:plugged-module-role-scoping
Sep 30, 2026
Merged

vikrantwiz02 merged 1 commit into
FusionIIIT:acad-mainfrom
vikrantwiz02:plugged-module-role-scoping

Conversation

@vikrantwiz02

Copy link
Copy Markdown
Member

The IAM built one navigation list from the union of somebody's permissions, so a person who is both a student and an office holder saw the student's own screens — My Applications, My Offers, Season Registration — while acting as the office.

The menus now arrive keyed by designation and the shell renders the acting role's share, the way accessible_modules already worked. pluggedNavigation becomes a map, and currentPluggedNavigation follows the role switcher.

Also: the iframe's sandbox is not a boundary and the comment claimed it was. Same-origin plus scripts lets the frame remove its own sandbox, and it needs both. What actually keeps the frame safe is that nothing else — an upload above all — is served from this origin as a page, which the portal PR enforces.

Needs FusionIIIT/Fusion#2000 and FusionIIIT/Fusion_System_Administrator's navigation_by_role, which supplies the per-role payload.

457 tests pass, including two new ones on the role-scoped selector.

The IAM built one navigation list from the union of somebody's permissions, so
a person who is both a student and an office holder saw the student's own
screens — My Applications, My Offers — while acting as the office. The menus
now arrive keyed by designation and the shell renders the acting role's share,
the way accessible modules already worked.

The iframe's sandbox is not a boundary and the comment said it was: same-origin
plus scripts lets the frame drop its own sandbox, and it needs both. What keeps
the frame safe is that nothing else is served from this origin as a page.
@vikrantwiz02
vikrantwiz02 merged commit b7263a7 into FusionIIIT:acad-main Sep 30, 2026
1 check passed
@vikrantwiz02
vikrantwiz02 deleted the plugged-module-role-scoping branch October 2, 2026 18:40
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.

1 participant