first commit
This commit is contained in:
9
src/utils/authorization/authorize.js
Normal file
9
src/utils/authorization/authorize.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import authorization from './authorization';
|
||||
import normalizeRoles from './normalizeRoles';
|
||||
|
||||
const authorize = (...profiles) => {
|
||||
const roles = normalizeRoles(profiles);
|
||||
return authorization(roles).authorize;
|
||||
};
|
||||
|
||||
export default authorize;
|
||||
Reference in New Issue
Block a user