mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-21 04:25:27 -04:00
fix: permission calculator for server owner (#71)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user