This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* `isOwners` policy that allows for many owners and a private field == false individual querying or sharing with multiple users as readonly | |
*/ | |
const _ = require('lodash'); | |
let compareIDs = (a, b) => { | |
return a.toString() === b.toString(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* `isOwner` policy. | |
*/ | |
var pluralize = require('pluralize') | |
module.exports = async (ctx, next) => { | |
try { | |
let errMsg = "You are not allowed to perform this action."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nextjs in server side to detect device with user agent |