mirror of
https://github.com/sasjs/server.git
synced 2026-01-12 00:30:06 +00:00
fix: show non-admin user his own permissions only
This commit is contained in:
@@ -11,7 +11,7 @@ const controller = new PermissionController()
|
||||
|
||||
permissionRouter.get('/', async (req, res) => {
|
||||
try {
|
||||
const response = await controller.getAllPermissions()
|
||||
const response = await controller.getAllPermissions(req)
|
||||
res.send(response)
|
||||
} catch (err: any) {
|
||||
const statusCode = err.code
|
||||
|
||||
Reference in New Issue
Block a user