Змінено директорії
Додано скрипти CRON Поліпшено механізм запису стендів та їх редагування
This commit is contained in:
@@ -2,7 +2,7 @@ const db = require("../config/db");
|
||||
|
||||
function updateApartment(user, data) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!user.possibilities.can_manager_territory) {
|
||||
if (!user.possibilities.can_view_territory) {
|
||||
return reject(new Error("Forbidden: no rights to manage territory"));
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ const db = require("../config/db");
|
||||
|
||||
function updateBuilding(user, data) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!user.possibilities.can_manager_territory) {
|
||||
if (!user.possibilities.can_view_territory) {
|
||||
return reject(new Error("Forbidden: no rights to manage territory"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user