diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-20 21:12:37 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-20 21:12:37 +1300 |
commit | 2bb63a0b1c82c42c0d13614c5a67521130165368 (patch) | |
tree | b3f161b35fb74e7996845fab420eec8a868017c8 /src/org/traccar/api/resource/UserResource.java | |
parent | 5947767811b376a26c550661a7f5362d0d884f84 (diff) | |
download | trackermap-server-2bb63a0b1c82c42c0d13614c5a67521130165368.tar.gz trackermap-server-2bb63a0b1c82c42c0d13614c5a67521130165368.tar.bz2 trackermap-server-2bb63a0b1c82c42c0d13614c5a67521130165368.zip |
Check readonly and registration flags
Diffstat (limited to 'src/org/traccar/api/resource/UserResource.java')
-rw-r--r-- | src/org/traccar/api/resource/UserResource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/api/resource/UserResource.java b/src/org/traccar/api/resource/UserResource.java index bf4cb85c3..4d57d5b0c 100644 --- a/src/org/traccar/api/resource/UserResource.java +++ b/src/org/traccar/api/resource/UserResource.java @@ -47,7 +47,7 @@ public class UserResource extends BaseResource { @PermitAll @POST public Response add(User entity) throws SQLException { - Context.getPermissionsManager().checkUser(getUserId(), entity.getId()); + Context.getPermissionsManager().checkRegistration(getUserId()); Context.getDataManager().addUser(entity); Context.getPermissionsManager().refresh(); return Response.ok(entity).build(); |