feature: users with treatment edit permission should now have working hours defined. the appointment grid is now being drawn based on the doctor's working hours.
This commit is contained in:
@@ -57,6 +57,10 @@ export function permissionNamesFromFeatureState(state: FeaturePermState): string
|
||||
return out;
|
||||
}
|
||||
|
||||
export function featureStateHasTreatmentEdit(state: FeaturePermState): boolean {
|
||||
return Boolean(state.TAB_TREATMENT_EDIT?.edit);
|
||||
}
|
||||
|
||||
/** Human-readable access for the team table — feature name, or "Feature (Read only)" */
|
||||
export function formatAccessSummary(
|
||||
permissionNames: string[] | null | undefined,
|
||||
|
||||
Reference in New Issue
Block a user