Repository navigation
Admin por curso: Chosen courses deja a la persona como admin - #58
Open
Gaspilabastie wants to merge 3 commits into
Open
Gaspilabastie wants to merge 3 commits into
Gaspilabastie wants to merge 3 commits into
Conversation
Choosing courses for someone used to make them a member, so they lost the CRM, events, members and the MCP. Now course access is a setting of an admin (orgMemberships.courseScope): owners and admins with all courses open every course, including new ones and "Other" (opportunities without a course tag); admins with chosen courses open only their grants, View or Edit per course. Members open no course. - courseAccess:setScope moves an admin between all and chosen courses without touching their role; setAccess grants courses to admins with chosen courses only; making someone an owner opens every course. - Owners only: removing someone from the org, saving the canonical forms. - Demoting to member drops course grants. - Every change is recorded in permissionChanges (new 'scope' change). - The permission matrix and scenarios follow the new model; the course editor and reader are now admins with chosen courses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Admins with chosen courses now use the MCP like any admin, and its course resources follow the web's check: opportunities, applications, surveys, polls, outbox, email log, survey results and the availability heatmap show only their courses; writes, creation, duplication and deletion need edit on the course, and retagging needs edit on the new course. orgStats counts only their courses' opportunities and applications. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The table lists the org's admins with Owner, All courses or Chosen courses, and View/Edit per course for chosen courses, with an "Other" column for opportunities without a course tag. Nothing here makes anyone an admin or a member. The opportunity pages open by course for admins with chosen courses, including the Feedback tab, and only owners see "Remove from Organization" in Members. The shortcuts for members with course access are gone, since members have none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tarea de Notion: Construir admin por curso en ASTN. Detalle y tabla de permisos en #57.
Qué cambia
courseScope): sigue teniendo CRM, eventos, miembros y MCP, y en los cursos ve solo los que tiene marcados (View o Edit).permissionChanges(nuevo tiposcope).Pendiente para después del PR de niveles de acceso
Estas funciones están en archivos que el PR de niveles de acceso está reorganizando, así que las dejo para después de ese merge para no pisarnos:
wanted: owner).getOrgApplicationCountygetSurveyResponsesForUserfiltrados por curso.Datos en producción
No hace falta migrar nada.
courseScopees opcional, y sin valor significa "All courses", así que los admins de hoy siguen viendo todo. La tablacourseAccessestá vacía.Chequeos
bun test src convex: 3416 tests, 0 fallas. Matriz de permisos actualizada, más tests nuevos de "Other", de cambio de alcance y del filtro del MCP.lint,lint:convex(3 advertencias que ya estaban en main) yvp check.🤖 Generated with Claude Code