From 3a8443b8c2127b28f13134878b31f4dbbe46448f Mon Sep 17 00:00:00 2001 From: Paurikova2 <107862249+Paurikova2@users.noreply.github.com> Date: Wed, 7 Aug 2024 12:42:20 +0200 Subject: [PATCH] comment errors (#725) --- .../org/dspace/content/clarin/ClarinLicenseServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) {