mirror of
https://github.com/wassname/talk.git
synced 2026-08-18 12:30:39 +08:00
replaced eslint:recommended with prettier
This commit is contained in:
+2
-3
@@ -1,12 +1,11 @@
|
||||
|
||||
/**
|
||||
* check will ensure that the user has the desired roles.
|
||||
*
|
||||
* @param {Object} user user being checked for roles
|
||||
* @param {Array<String>} roles roles to check that the user has
|
||||
*/
|
||||
const check = (user, roles) => roles.some((role) => role === user.role);
|
||||
const check = (user, roles) => roles.some(role => role === user.role);
|
||||
|
||||
module.exports = {
|
||||
check
|
||||
check,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user