mirror of
https://github.com/strapi/strapi.git
synced 2025-08-10 09:47:46 +00:00
19 lines
275 B
JavaScript
19 lines
275 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* `test-policy` policy
|
|
*/
|
|
|
|
module.exports = (policyCtx, config, { strapi }) => {
|
|
// Add your own logic here.
|
|
strapi.log.info('In test-policy policy.');
|
|
|
|
const canDoSomething = true;
|
|
|
|
if (canDoSomething) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
};
|