diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-16 07:35:55 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-16 06:35:55 +1300 |
commit | 00caa503748a1dad3349bfb8444ef766efd60633 (patch) | |
tree | 33a963cf4b4e405c5abf97963cce6465854a7fdc | |
parent | 7b43de6883d317c57e4cb0f0be6caf0b23297189 (diff) | |
download | traccar-server-00caa503748a1dad3349bfb8444ef766efd60633.tar.gz traccar-server-00caa503748a1dad3349bfb8444ef766efd60633.tar.bz2 traccar-server-00caa503748a1dad3349bfb8444ef766efd60633.zip |
Add user readonly to SQL queries
-rw-r--r-- | setup/default.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/setup/default.xml b/setup/default.xml index 9f15e2f4b..1572ae60c 100644 --- a/setup/default.xml +++ b/setup/default.xml @@ -64,14 +64,15 @@ </entry> <entry key='database.insertUser'> - INSERT INTO users (name, email, hashedPassword, salt, admin, map, distanceUnit, speedUnit, latitude, longitude, zoom, twelveHourFormat, coordinateFormat, disabled, expirationTime, deviceLimit, token, attributes) - VALUES (:name, :email, :hashedPassword, :salt, :admin, :map, :distanceUnit, :speedUnit, :latitude, :longitude, :zoom, :twelveHourFormat, :coordinateFormat, :disabled, :expirationTime, :deviceLimit, :token, :attributes) + INSERT INTO users (name, email, hashedPassword, salt, readonly, admin, map, distanceUnit, speedUnit, latitude, longitude, zoom, twelveHourFormat, coordinateFormat, disabled, expirationTime, deviceLimit, token, attributes) + VALUES (:name, :email, :hashedPassword, :salt, :readonly, :admin, :map, :distanceUnit, :speedUnit, :latitude, :longitude, :zoom, :twelveHourFormat, :coordinateFormat, :disabled, :expirationTime, :deviceLimit, :token, :attributes) </entry> <entry key='database.updateUser'> UPDATE users SET name = :name, email = :email, + readonly = :readonly, admin = :admin, map = :map, distanceUnit = :distanceUnit, |