Skip to content

Commit

Permalink
Fixes spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Arul- committed Mar 27, 2021
1 parent 956b8f1 commit f6a2532
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Parse-Dashboard/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,14 @@ module.exports = function(config, options) {

if (successfulAuth) {
if (appsUserHasAccess) {
// Restric access to apps defined in user dictionary
// Restrict access to apps defined in user dictionary
// If they didn't supply any app id, user will access all apps
response.apps = response.apps.filter(function (app) {
return appsUserHasAccess.find(appUserHasAccess => {
const isSame = app.appId === appUserHasAccess.appId;
if (isSame && appUserHasAccess.readOnly) {
app.masterKey = app.readOnlyMasterKey;
console.log(req.user);
}
return isSame;
})
Expand Down

0 comments on commit f6a2532

Please sign in to comment.