first commit

This commit is contained in:
ryanwong
2022-11-26 01:23:44 -05:00
commit 02843b95c9
2776 changed files with 102795 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
import { UserRoleModal } from 'Containers/User/Models/UserModel/UserModel';
export const isCompanyAdmin = (roles: Array<UserRoleModal>) =>
roles?.length > 0 ? roles.some(({ name }: UserRoleModal) => name.toLocaleLowerCase() === 'company-admin') : false;