🔐 feat: Granular Role-based Permissions + Entra ID Group Discovery (#7804)

This commit is contained in:
Danny Avila 2025-06-23 10:54:25 -04:00
parent 6c9a29b6cf
commit f55cdc9b7f
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
99 changed files with 11321 additions and 621 deletions

View file

@ -0,0 +1,11 @@
import accessRoleSchema from '~/schema/accessRole';
import type * as t from '~/types';
/**
* Creates or returns the AccessRole model using the provided mongoose instance and schema
*/
export function createAccessRoleModel(mongoose: typeof import('mongoose')) {
return (
mongoose.models.AccessRole || mongoose.model<t.IAccessRole>('AccessRole', accessRoleSchema)
);
}