mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
do not allow disabling permissions in production
This commit is contained in:
parent
c1387f262d
commit
3912515c25
@ -19,7 +19,8 @@ export default schema => {
|
||||
]
|
||||
|
||||
// add permisions middleware if we are not seeding to the first position
|
||||
if (process.env.PERMISSIONS !== 'disabled') {
|
||||
// NOTE: DO NOT SET THE PERMISSION FLAT YOUR SELF
|
||||
if (process.env.PERMISSIONS !== 'disabled' && process.env.NODE_ENV !== 'production') {
|
||||
middleware.unshift(permissionsMiddleware.generate(schema))
|
||||
}
|
||||
return middleware
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user