mirror of
https://github.com/strapi/strapi.git
synced 2025-08-14 03:34:53 +00:00
19 lines
276 B
JavaScript
19 lines
276 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;
|
|
};
|