instaceOfUserTenantAccessPermission

This commit is contained in:
Carl Downing 2023-07-30 08:25:45 -07:00
parent cba6e4deb9
commit ea124d5505
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ import PositiveNumber from '../Types/PositiveNumber';
import Route from '../Types/API/Route';
import TableColumnType from '../Types/Database/TableColumnType';
import Permission, {
instaceOfUserTenantAccessPermission,
instanceOfUserTenantAccessPermission,
PermissionHelper,
UserPermission,
UserTenantAccessPermission,
@ -506,7 +506,7 @@ export default class BaseModel extends BaseEntity {
let userPermissions: Array<Permission> = [];
if (
instaceOfUserTenantAccessPermission(userProjectPermissions) &&
instanceOfUserTenantAccessPermission(userProjectPermissions) &&
userProjectPermissions.permissions &&
Array.isArray(userProjectPermissions.permissions)
) {

View File

@ -2531,7 +2531,7 @@ export const PermissionsArray: Array<string> = [
...new Set(Object.keys(Permission)),
]; // Returns ["Owner", "Administrator"...]
export function instaceOfUserTenantAccessPermission(
export function instanceOfUserTenantAccessPermission(
object: any
): object is UserTenantAccessPermission {
return object._type === 'UserTenantAccessPermission';