Most apps start their access control with something like this:

function canEditReportsSummary(role) {

return ['EDITOR', 'ADMIN'].includes(role);

}

Enter fullscreen mode