package eu.cloudopting.service;

import eu.cloudopting.domain.ApplicationMedia;
import eu.cloudopting.events.api.service.BaseService;

public interface ApplicationMediaService extends BaseService<ApplicationMedia> {

}

@@ -26,16 +26,82 @@
 rvice;%0A%0A
+import org.springframework.security.access.prepost.PreAuthorize;%0A%0A
 import e
@@ -276,10 +276,350 @@
 dia%3E %7B%0A%0A
+%09@Override%0A%09@PreAuthorize(%22hasRole('ROLE_ADMIN') or (principal.organizationId == #entity.applicationId.organizationId.id)%22)%0A%09ApplicationMedia create(ApplicationMedia entity);%0A%09%0A%09@Override%0A%09@PreAuthorize(%22hasRole('ROLE_ADMIN') or (principal.organizationId == #entity.applicationId.organizationId.id)%22)%0A%09void update(ApplicationMedia entity);%0A
 %7D%0A

Fix for #256