diff options
author | Anton Tananaev <anton@traccar.org> | 2023-12-17 11:43:51 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-12-17 11:43:51 -0800 |
commit | c165968c2eb24b1c4a35dab39174b4df3576551c (patch) | |
tree | 6dae35ddec3feb14151e5c711f4d0f5865cbc64e /src/main/java/org/traccar/api/resource/AttributeResource.java | |
parent | 4dc2e86ae5e403143b3c4e2c1a3bd671dfeaf5f8 (diff) | |
download | trackermap-server-c165968c2eb24b1c4a35dab39174b4df3576551c.tar.gz trackermap-server-c165968c2eb24b1c4a35dab39174b4df3576551c.tar.bz2 trackermap-server-c165968c2eb24b1c4a35dab39174b4df3576551c.zip |
Improve cache update performance
Diffstat (limited to 'src/main/java/org/traccar/api/resource/AttributeResource.java')
-rw-r--r-- | src/main/java/org/traccar/api/resource/AttributeResource.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/api/resource/AttributeResource.java b/src/main/java/org/traccar/api/resource/AttributeResource.java index 44f0ef452..52c4d6324 100644 --- a/src/main/java/org/traccar/api/resource/AttributeResource.java +++ b/src/main/java/org/traccar/api/resource/AttributeResource.java @@ -78,21 +78,21 @@ public class AttributeResource extends ExtendedObjectResource<Attribute> { } @POST - public Response add(Attribute entity) throws StorageException { + public Response add(Attribute entity) throws Exception { permissionsService.checkAdmin(getUserId()); return super.add(entity); } @Path("{id}") @PUT - public Response update(Attribute entity) throws StorageException { + public Response update(Attribute entity) throws Exception { permissionsService.checkAdmin(getUserId()); return super.update(entity); } @Path("{id}") @DELETE - public Response remove(@PathParam("id") long id) throws StorageException { + public Response remove(@PathParam("id") long id) throws Exception { permissionsService.checkAdmin(getUserId()); return super.remove(id); } |