Allow users to override the org owner (#1577)

This commit is contained in:
Geometrically
2024-01-12 15:29:50 -05:00
committed by GitHub
parent fa83da6085
commit 1cbe99a0d8
2 changed files with 4 additions and 4 deletions

View File

@@ -423,7 +423,7 @@ useSeoMeta({
title: 'Modrinth',
description,
publisher: 'Modrinth',
themeColor: [{ color: '#1bd96a' }],
themeColor: '#1bd96a',
colorScheme: 'dark light',
// OpenGraph

View File

@@ -499,9 +499,7 @@
<div class="input-group">
<button
class="iconified-button brand-button"
:disabled="
(props.currentMember?.permissions & EDIT_MEMBER) !== EDIT_MEMBER || member.is_owner
"
:disabled="(props.currentMember?.permissions & EDIT_MEMBER) !== EDIT_MEMBER"
@click="updateOrgMember(index)"
>
<SaveIcon />
@@ -591,6 +589,8 @@ function initMembers() {
returnVal.override = !!foundMember
returnVal.oldOverride = !!foundMember
returnVal.is_owner = partialOrgMember.is_owner
return returnVal
})