Просмотр исходного кода

Added unlimited invites for dev-ee

jnfrati 4 лет назад
Родитель
Сommit
af424e8cd7
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      dashboard/src/main/home/project-settings/InviteList.tsx

+ 3 - 0
dashboard/src/main/home/project-settings/InviteList.tsx

@@ -366,6 +366,9 @@ const InvitePage: React.FunctionComponent<Props> = ({}) => {
   }, [invites, currentProject?.id, window?.location?.host, isHTTPS, user?.id]);
   }, [invites, currentProject?.id, window?.location?.host, isHTTPS, user?.id]);
 
 
   const hasSeats = () => {
   const hasSeats = () => {
+    if (String(edition) === "dev-ee") {
+      return true;
+    }
     // If usage limit is 0, the project has unlimited seats. Otherwise, check
     // If usage limit is 0, the project has unlimited seats. Otherwise, check
     // the usage limit against the current usage.
     // the usage limit against the current usage.
     if (usage?.limit.users === 0) {
     if (usage?.limit.users === 0) {