mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
added permissions as first item.
This commit is contained in:
parent
8c72c88e59
commit
c1387f262d
@ -17,8 +17,10 @@ export default schema => {
|
||||
fixImageUrlsMiddleware,
|
||||
softDeleteMiddleware
|
||||
]
|
||||
|
||||
// add permisions middleware if we are not seeding to the first position
|
||||
if (process.env.PERMISSIONS !== 'disabled') {
|
||||
middleware.push(permissionsMiddleware.generate(schema))
|
||||
middleware.unshift(permissionsMiddleware.generate(schema))
|
||||
}
|
||||
return middleware
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user