You've already forked AstralRinth
forked from didirus/AstralRinth
Allow users to override the org owner (#1577)
This commit is contained in:
@@ -423,7 +423,7 @@ useSeoMeta({
|
|||||||
title: 'Modrinth',
|
title: 'Modrinth',
|
||||||
description,
|
description,
|
||||||
publisher: 'Modrinth',
|
publisher: 'Modrinth',
|
||||||
themeColor: [{ color: '#1bd96a' }],
|
themeColor: '#1bd96a',
|
||||||
colorScheme: 'dark light',
|
colorScheme: 'dark light',
|
||||||
|
|
||||||
// OpenGraph
|
// OpenGraph
|
||||||
|
|||||||
@@ -499,9 +499,7 @@
|
|||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<button
|
<button
|
||||||
class="iconified-button brand-button"
|
class="iconified-button brand-button"
|
||||||
:disabled="
|
:disabled="(props.currentMember?.permissions & EDIT_MEMBER) !== EDIT_MEMBER"
|
||||||
(props.currentMember?.permissions & EDIT_MEMBER) !== EDIT_MEMBER || member.is_owner
|
|
||||||
"
|
|
||||||
@click="updateOrgMember(index)"
|
@click="updateOrgMember(index)"
|
||||||
>
|
>
|
||||||
<SaveIcon />
|
<SaveIcon />
|
||||||
@@ -591,6 +589,8 @@ function initMembers() {
|
|||||||
returnVal.override = !!foundMember
|
returnVal.override = !!foundMember
|
||||||
returnVal.oldOverride = !!foundMember
|
returnVal.oldOverride = !!foundMember
|
||||||
|
|
||||||
|
returnVal.is_owner = partialOrgMember.is_owner
|
||||||
|
|
||||||
return returnVal
|
return returnVal
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user