Service Layer low complexity Shared Component mobile
0
Dependencies
2
Dependents
13
Entities
0
Integrations

Description

Injects the authenticated user's role into query contexts to enforce data access boundaries. Shared service originating from the Role-Based Access Control feature; referenced here because the contacts list applies role-specific filtering through it at query time.

Feature: Contact List & Search

role-guard-service

Responsibilities

  • Provide current user role to downstream services
  • Enforce visibility rules for role-specific data queries
  • Block unauthorized data access at service boundary

Interfaces

getCurrentUserRole()
canAccessFeature(String featureId)
injectRoleContext(QueryContext ctx)
getUserOrganizationContext()

Relationships

Dependents (2)

Components that depend on this component