diff --git a/dspace-api/src/main/java/org/dspace/content/clarin/ClarinLicenseServiceImpl.java b/dspace-api/src/main/java/org/dspace/content/clarin/ClarinLicenseServiceImpl.java index 64aa376b744a..10f209df7d04 100644 --- a/dspace-api/src/main/java/org/dspace/content/clarin/ClarinLicenseServiceImpl.java +++ b/dspace-api/src/main/java/org/dspace/content/clarin/ClarinLicenseServiceImpl.java @@ -193,7 +193,7 @@ public List findAll(Context context) throws SQLException, Authori public void delete(Context context, ClarinLicense clarinLicense) throws SQLException, AuthorizeException { if (!authorizeService.isAdmin(context)) { throw new AuthorizeException( - "You must be an admin to create an CLARIN License"); + "You must be an admin to delete an CLARIN License"); } clarinLicenseDAO.delete(context, clarinLicense); @@ -203,7 +203,7 @@ public void delete(Context context, ClarinLicense clarinLicense) throws SQLExcep public void update(Context context, ClarinLicense newClarinLicense) throws SQLException, AuthorizeException { if (!authorizeService.isAdmin(context)) { throw new AuthorizeException( - "You must be an admin to create an CLARIN License"); + "You must be an admin to update an CLARIN License"); } if (Objects.isNull(newClarinLicense)) {