|
|
|
@ -200,7 +200,7 @@ public class ISProfile {
|
|
|
|
|
public boolean delete(String name) {
|
|
|
|
|
try {
|
|
|
|
|
CKANUser ckanUser = CKANUserCache.getCurrrentCKANUser();
|
|
|
|
|
if(ckanUser.getRole().ordinal()<Role.ADMIN.ordinal()) {
|
|
|
|
|
if(ckanUser.getRole().ordinal()<Role.EDITOR.ordinal()) {
|
|
|
|
|
throw new NotAuthorizedException("You are not authorized to manage profiles, only Catalogue Editor can manipulate profiles.");
|
|
|
|
|
}
|
|
|
|
|
MetadataUtility metadataUtility = new MetadataUtility();
|
|
|
|
|