Changeset View
Changeset View
Standalone View
Standalone View
lib/app/base-chips/access-strategy-types/public.js
"use strict"; | |||||
const Promise = require("bluebird"); | const Promise = require("bluebird"); | ||||
const Query = require("../../../datastore/query.js"); | const Query = require("../../../datastore/query.js"); | ||||
module.exports = { | module.exports = { | ||||
name: "public", | name: "public", | ||||
getRestrictingQuery: async function() { | async getRestrictingQuery() { | ||||
return new Query.AllowAll(); | return new Query.AllowAll(); | ||||
}, | }, | ||||
checker_function: function() { | checker_function() { | ||||
return Promise.resolve("Everybody is a winner!"); | return Promise.resolve("Everybody is a winner!"); | ||||
}, | }, | ||||
item_sensitive: false, | item_sensitive: false, | ||||
}; | }; |