mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Update src/middleware/index.js
Co-Authored-By: appinteractive <greg@app-interactive.de>
This commit is contained in:
parent
3912515c25
commit
68b143be7e
@ -18,7 +18,7 @@ export default schema => {
|
||||
softDeleteMiddleware
|
||||
]
|
||||
|
||||
// add permisions middleware if we are not seeding to the first position
|
||||
// add permisions middleware at the first position (unless we're seeding)
|
||||
// NOTE: DO NOT SET THE PERMISSION FLAT YOUR SELF
|
||||
if (process.env.PERMISSIONS !== 'disabled' && process.env.NODE_ENV !== 'production') {
|
||||
middleware.unshift(permissionsMiddleware.generate(schema))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user