Imporve the role based forntend protected roles
This commit is contained in:
@@ -54,6 +54,12 @@ export class TenantService {
|
||||
return apiClient.get<TenantAccessResponse>(`${this.baseUrl}/${tenantId}/access/${userId}`);
|
||||
}
|
||||
|
||||
async getCurrentUserTenantAccess(tenantId: string): Promise<TenantAccessResponse> {
|
||||
// This will use the current user from the auth token
|
||||
// The backend endpoint handles extracting user_id from the token
|
||||
return apiClient.get<TenantAccessResponse>(`${this.baseUrl}/${tenantId}/my-access`);
|
||||
}
|
||||
|
||||
// Search & Discovery
|
||||
async searchTenants(params: TenantSearchParams): Promise<TenantResponse[]> {
|
||||
const queryParams = new URLSearchParams();
|
||||
|
||||
Reference in New Issue
Block a user