Skip to content

Commit d093fe5

Browse files
committed
updated permission method
1 parent 840f155 commit d093fe5

File tree

1 file changed

+1
-0
lines changed
  • src/routes/copilotOpportunityApply

1 file changed

+1
-0
lines changed

src/routes/copilotOpportunityApply/list.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = [
1313

1414
console.log("start list operation");
1515
const isAdmin = util.hasRoles(req, ADMIN_ROLES);
16+
const userId = req.authUser.userId;
1617

1718
let sort = req.query.sort ? decodeURIComponent(req.query.sort) : 'createdAt desc';
1819
if (sort.indexOf(' ') === -1) {

0 commit comments

Comments
 (0)