From 5521aa17b7d6b32e7070113f588c18bbbb582c36 Mon Sep 17 00:00:00 2001 From: WegFetZ Date: Fri, 26 Dec 2014 23:39:17 +0100 Subject: [PATCH] fix wrong permission check --- .../soundcenter/client/gui/actions/MusicTabActions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoundCenterClient/src/com/soundcenter/soundcenter/client/gui/actions/MusicTabActions.java b/SoundCenterClient/src/com/soundcenter/soundcenter/client/gui/actions/MusicTabActions.java index 4ac357f..416877d 100644 --- a/SoundCenterClient/src/com/soundcenter/soundcenter/client/gui/actions/MusicTabActions.java +++ b/SoundCenterClient/src/com/soundcenter/soundcenter/client/gui/actions/MusicTabActions.java @@ -38,7 +38,7 @@ public static void listSelectionChanged() { if (song != null) { if (song.getOwner().equalsIgnoreCase(Client.userName) - || Client.database.permissionGranted("sc.delete.others")) { + || Client.database.permissionGranted("sc.others.delete")) { App.gui.musicTab.deleteButton.setEnabled(true); } else { App.gui.musicTab.deleteButton.setEnabled(false);