export function addRole()

in package/src/rbac.ts [33:40]


export function addRole(role: IRoleDefinition): IdentityResponse {
    if (roles.has(role.id)) {
        return { message: "Creation of role failed, role already exists." };
    }

    roles.set(role.id, role);
    return { message: "Role created successfully." };
}