Skip to content

Commit

Permalink
fix(frontend): 커스텀 이모지 관리 역할이 있는 사용자가 원격 서버의 이모지를 가져올 수 없음
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Nov 26, 2024
1 parent 587469d commit 34c1b4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_CHERRYPICK.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2024xx](CHANGE

### Client
- Fix: 노트 상세 페이지에서 사용자 이름이 중복으로 표시될 수 있음
- Fix: 커스텀 이모지 관리 역할이 있는 사용자가 원격 서버의 이모지를 가져올 수 없음

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async function toggleReaction(ev: MouseEvent) {
}

function stealReaction(ev: MouseEvent) {
if (!props.note.user.host && $i && !($i.isAdmin ?? $i.policies.canManageCustomEmojis)) return;
if (!props.note.user.host && $i && !($i.isAdmin || $i.policies.canManageCustomEmojis)) return;

os.popupMenu([{
type: 'label',
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/global/MkCustomEmoji.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function onClick(ev: MouseEvent) {
}] : []),
);

if (props.host && $i && ($i.isAdmin ?? $i.policies.canManageCustomEmojis)) {
if (props.host && $i && ($i.isAdmin || $i.policies.canManageCustomEmojis)) {
menuItems.push({
text: i18n.ts.import,
icon: 'ti ti-plus',
Expand Down

0 comments on commit 34c1b4e

Please sign in to comment.