parent
e4cc833ccc
commit
6a47b867a4
2 changed files with 2 additions and 1 deletions
|
|
@ -1051,7 +1051,7 @@ function renderSounds(sounds) {
|
|||
item.className = 'sound-item';
|
||||
|
||||
// Only show delete button if user is creator or owner
|
||||
const canDelete = state.user && (state.user.id === sound.created_by_user_id || (state.guilds.find(g => g.id === state.selectedGuildId)?.owner_user_id === state.user.id));
|
||||
const canDelete = state.me && (state.me.id === sound.created_by_user_id || (state.guilds.find(g => g.id === state.selectedGuildId)?.owner_user_id === state.me.id));
|
||||
|
||||
item.innerHTML = `
|
||||
<div class="sound-icon">${sound.icon}</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue