@galadrim/galadmin 0.1.147 → 0.1.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galadrim/galadmin",
3
- "version": "0.1.147",
3
+ "version": "0.1.148",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
package/src/api.ts CHANGED
@@ -90,17 +90,6 @@ export default (db, config, user) => {
90
90
 
91
91
  app.get('/config', async (req, res) => {
92
92
  try {
93
- config = {
94
- ...config,
95
- ...{
96
- views: config.views.filter(view => !view.roles || view.roles.includes(user.role))
97
- }
98
- }
99
- for (let view of config.views) {
100
- if (view.columns) {
101
- view.columns = view.columns.filter(column => !column.roles || column.roles.includes(user.role))
102
- }
103
- }
104
93
  const { mysql, auth, sessionSecret, ...safeConfig } = config;
105
94
  res.send({
106
95
  config: serializeJs(safeConfig)