permission for withdraw request
This commit is contained in:
@@ -360,7 +360,7 @@
|
|||||||
:exact="false"
|
:exact="false"
|
||||||
/>
|
/>
|
||||||
<CSidebarNavItem
|
<CSidebarNavItem
|
||||||
v-if="hasPermission('gps')"
|
v-if="hasPermission('AdminGpsWithdrawList')"
|
||||||
name="درخواست های برداشت"
|
name="درخواست های برداشت"
|
||||||
:to="{ name: 'admin-gps-withdraw', query: { filter: 'all' } }"
|
:to="{ name: 'admin-gps-withdraw', query: { filter: 'all' } }"
|
||||||
font-icon="fal fa-credit-card"
|
font-icon="fal fa-credit-card"
|
||||||
|
|||||||
@@ -118,5 +118,9 @@ module.exports = [
|
|||||||
{
|
{
|
||||||
name: 'جی پی اس',
|
name: 'جی پی اس',
|
||||||
value: 'gps'
|
value: 'gps'
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
name: 'درخواست برداشت نصاب',
|
||||||
|
value: 'AdminGpsWithdrawList'
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -65,8 +65,8 @@ router.get('/gps/award-request/:id', hasPermission('gps'), awardRequest.findOne)
|
|||||||
router.put('/gps/award-request/:id', hasPermission('gps'), awardRequest.update)
|
router.put('/gps/award-request/:id', hasPermission('gps'), awardRequest.update)
|
||||||
|
|
||||||
/// ////////////// Withdraw
|
/// ////////////// Withdraw
|
||||||
router.get('/gps/withdraw', hasPermission('gps'), withdraw.getAllForAdmin)
|
router.get('/gps/withdraw', hasPermission('AdminGpsWithdrawList'), withdraw.getAllForAdmin)
|
||||||
router.patch('/gps/withdraw/:id/:type', hasPermission('gps'), withdraw.updateReq)
|
router.patch('/gps/withdraw/:id/:type', hasPermission('AdminGpsWithdrawList'), withdraw.updateReq)
|
||||||
|
|
||||||
/// ////////////// Installed device
|
/// ////////////// Installed device
|
||||||
router.patch('/gps/register-device/:id/:type', installedDevice.updateInstalled)
|
router.patch('/gps/register-device/:id/:type', installedDevice.updateInstalled)
|
||||||
|
|||||||
Reference in New Issue
Block a user