Skip to content

Commit

Permalink
Fix super admin page on cloud (#2656)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdorn committed Jun 17, 2024
1 parent 8a8da29 commit 1b05ae7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/front-end/pages/admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,17 @@ const Admin: FC = () => {

const [orgModalOpen, setOrgModalOpen] = useState(false);

if (license?.plan != "enterprise" || !superAdmin) {
if (!superAdmin) {
return (
<div className="alert alert-danger">
Only super admins on an enterprise license can view this page
Only super admins can view this page
</div>
);
}
if (!isCloud() && license?.plan != "enterprise") {
return (
<div className="alert alert-danger">
You must be on an enterprise license to view this page
</div>
);
}
Expand Down

0 comments on commit 1b05ae7

Please sign in to comment.