mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
add a perms utils file
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
const intersection = require('lodash/intersection');
|
||||
const check = (user, roles) => {
|
||||
return !!intersection(roles, user.roles).length;
|
||||
};
|
||||
const {check} = require('./utils');
|
||||
|
||||
module.exports = {
|
||||
SEARCH_ASSETS: 'SEARCH_ASSETS',
|
||||
|
||||
Reference in New Issue
Block a user