Errores solucionados, modelos loopback ocultados

This commit is contained in:
Juan Ferrer Toribio 2017-05-17 21:38:02 +02:00
parent 9d4acfc64f
commit 2c7a37c4b6
4 changed files with 36 additions and 46 deletions

View File

@ -14,23 +14,18 @@
]
},
"User": {
"dataSource": "auth",
"public": true
"dataSource": "auth"
},
"AccessToken": {
"dataSource": "auth",
"public": true
"dataSource": "auth"
},
"ACL": {
"dataSource": "auth",
"public": true
"dataSource": "auth"
},
"RoleMapping": {
"dataSource": "auth",
"public": true
"dataSource": "auth"
},
"Role": {
"dataSource": "auth",
"public": true
"dataSource": "auth"
}
}

View File

@ -14,58 +14,53 @@
]
},
"User": {
"dataSource": "auth"
"dataSource": "auth",
"public": false
},
"AccessToken": {
"dataSource": "auth"
"dataSource": "auth",
"public": false
},
"ACL": {
"dataSource": "auth"
"dataSource": "auth",
"public": false
},
"RoleMapping": {
"dataSource": "auth"
"dataSource": "auth",
"public": false
},
"Role": {
"dataSource": "auth"
"dataSource": "auth",
"public": false
},
"Client": {
"dataSource": "vn",
"public": true
"dataSource": "vn"
},
"PayMethod": {
"dataSource": "vn",
"public": true
"dataSource": "vn"
},
"ClientObservation": {
"dataSource": "vn",
"public": true
"dataSource": "vn"
},
"Address": {
"dataSource": "vn",
"public": true
"dataSource": "vn"
},
"AgencyService": {
"dataSource": "vn",
"public": true
"dataSource": "vn"
},
"Province": {
"dataSource": "vn",
"public": true
"dataSource": "vn"
},
"Country": {
"dataSource": "vn",
"public": true
"dataSource": "vn"
},
"Account": {
"dataSource": "vn",
"public": true
"dataSource": "vn"
},
"ContactChannel": {
"dataSource": "vn",
"public": true
"dataSource": "vn"
},
"Employee": {
"dataSource": "vn",
"public": true
"dataSource": "vn"
}
}

View File

@ -31,11 +31,6 @@ module.exports = function (app) {
});
function validateToken(tokenId, cb) {
if (!tokenId) {
cb(false);
return;
}
app.models.AccessToken.findById(tokenId, function(err, token) {
if (token) {
token.validate (function (err, isValid) {

View File

@ -14,18 +14,23 @@
]
},
"User": {
"dataSource": "auth"
"dataSource": "auth",
"public": false
},
"AccessToken": {
"dataSource": "auth"
"dataSource": "auth",
"public": false
},
"ACL": {
"dataSource": "auth"
"dataSource": "auth",
"public": false
},
"RoleMapping": {
"dataSource": "auth"
"dataSource": "auth",
"public": false
},
"Role": {
"dataSource": "auth"
"dataSource": "auth",
"public": false
}
}