Skip to content

Commit

Permalink
added owner check for warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hotzenklotz committed Dec 20, 2022
1 parent b0196c9 commit 0b50790
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,5 @@ export function hasPricingPlanExceededStorage(
}

export function isUserAllowedToRequestUpgrades(user: APIUser): boolean {
// ToDo add owners
return user.isAdmin;
return user.isAdmin || user.isOrganizationOwner;
}

0 comments on commit 0b50790

Please sign in to comment.