Feat v0.9.3 team user roles (#77)
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / e2e-smoke (push) Has been skipped
CI/CD / test-runners (push) Has been skipped
CI/CD / test-frontend (push) Successful in 6s
CI/CD / test-go-pg (push) Successful in 2m51s
CI/CD / test-sqlite (push) Successful in 3m5s
CI/CD / build-and-deploy (push) Successful in 27s
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / e2e-smoke (push) Has been skipped
CI/CD / test-runners (push) Has been skipped
CI/CD / test-frontend (push) Successful in 6s
CI/CD / test-go-pg (push) Successful in 2m51s
CI/CD / test-sqlite (push) Successful in 3m5s
CI/CD / build-and-deploy (push) Successful in 27s
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #77.
This commit is contained in:
@@ -188,6 +188,26 @@ type TeamStore interface {
|
||||
|
||||
// MergeSettings merges a JSON string into the team's settings column.
|
||||
MergeSettings(ctx context.Context, teamID, settingsJSON string) error
|
||||
|
||||
// ── v0.9.3 — Team User Roles (many-to-many) ──
|
||||
|
||||
// AddUserRole assigns an additional role to a team member. Idempotent.
|
||||
AddUserRole(ctx context.Context, teamID, userID, role, assignedBy string) error
|
||||
|
||||
// RemoveUserRole removes one additional role from a team member.
|
||||
RemoveUserRole(ctx context.Context, teamID, userID, role string) error
|
||||
|
||||
// ListUserRoles returns the additional roles for a member (excludes primary).
|
||||
ListUserRoles(ctx context.Context, teamID, userID string) ([]string, error)
|
||||
|
||||
// GetMemberRoles returns the full effective role set (primary + additional).
|
||||
GetMemberRoles(ctx context.Context, teamID, userID string) ([]string, error)
|
||||
|
||||
// HasRole checks whether a user holds a specific role (primary or additional).
|
||||
HasRole(ctx context.Context, teamID, userID, role string) (bool, error)
|
||||
|
||||
// RemoveAllUserRoles deletes all additional roles for a member (cleanup on removal).
|
||||
RemoveAllUserRoles(ctx context.Context, teamID, userID string) error
|
||||
}
|
||||
|
||||
// =========================================
|
||||
|
||||
Reference in New Issue
Block a user