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