fix: permission calculator for server owner (#71)

This commit is contained in:
Lea
2023-04-12 20:58:36 +02:00
committed by GitHub
parent 63975a99b8
commit d452295c85
+1 -1
View File
@@ -42,7 +42,7 @@ export function calculatePermission(
if (target instanceof Server) {
// 1. Check if owner.
if (target.owner === user?.id) {
if (target.ownerId === user?.id) {
return Permission.GrantAllSafe;
} else {
// 2. Get ServerMember.