Added stashes with experimental row security policies. Added tag photos.
This commit is contained in:
@@ -10,7 +10,13 @@ const PgOrderByRelatedPlugin = require('@graphile-contrib/pg-order-by-related');
|
||||
|
||||
const { ActorPlugins, SitePlugins, ReleasePlugins } = require('./plugins/plugins');
|
||||
|
||||
const connectionString = `postgres://${config.database.user}:${config.database.password}@${config.database.host}:5432/${config.database.database}`;
|
||||
const connectionString = `postgres://${config.database.query.user}:${config.database.query.password}@${config.database.query.host}:5432/${config.database.query.database}`;
|
||||
|
||||
async function pgSettings(req) {
|
||||
return {
|
||||
'user.id': req.session.user?.id,
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = postgraphile(
|
||||
connectionString,
|
||||
@@ -36,5 +42,6 @@ module.exports = postgraphile(
|
||||
...SitePlugins,
|
||||
...ReleasePlugins,
|
||||
],
|
||||
pgSettings,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user