v1.0.0
This commit is contained in:
@@ -4,7 +4,7 @@ class GeneratorCardsController {
|
||||
async getScreen(req, res) {
|
||||
const { lat, lng, type, wayId, zoom, id, address, number } = req.query;
|
||||
|
||||
if (req.sheepRole == "administrator" || req.moderator.can_add_territory) {
|
||||
if (req.possibilities.can_add_territory) {
|
||||
let result = await saveCards({ center: {lat:lat,lng:lng}, wayId: wayId, zoom: zoom ?? 18, type: type, number: id, address: `${address} ${number}` });
|
||||
|
||||
console.log(result);
|
||||
|
||||
Reference in New Issue
Block a user