|
@@ -2,6 +2,7 @@ import ModelDeletedEvent from "@/modules/DataModule/ModelDeletedEvent";
|
|
|
import isUnlisted from "@/modules/DataModule/permissions/isUnlisted";
|
|
|
import isPublic from "@/modules/DataModule/permissions/isPublic";
|
|
|
import isOwner from "@/modules/DataModule/permissions/isOwner";
|
|
|
+import isDj from "@/modules/DataModule/permissions/isDj";
|
|
|
|
|
|
export default abstract class StationDeletedEvent extends ModelDeletedEvent {
|
|
|
protected static _modelName = "stations";
|
|
@@ -9,6 +10,7 @@ export default abstract class StationDeletedEvent extends ModelDeletedEvent {
|
|
|
protected static _hasPermission = [
|
|
|
isPublic,
|
|
|
isUnlisted,
|
|
|
+ isDj,
|
|
|
isOwner // TODO only check isOwner for community stations, if owner = user id
|
|
|
];
|
|
|
}
|