mirror of
https://github.com/jumpserver/lina.git
synced 2025-11-18 05:49:14 +00:00
Compare commits
2 Commits
pr@dev@k8s
...
v2.4.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a8230b7da | ||
|
|
d5ed85f973 |
@@ -24,7 +24,7 @@ export default {
|
|||||||
'currentUser'
|
'currentUser'
|
||||||
]),
|
]),
|
||||||
isExpire() {
|
isExpire() {
|
||||||
if (this.currentUser.role !== 'Admin') {
|
if (!this.publicSettings.XPACK_ENABLED || this.currentUser.role !== 'Admin') {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
const intervalDays = this.getIntervalDays(this.licenseData.date_expired)
|
const intervalDays = this.getIntervalDays(this.licenseData.date_expired)
|
||||||
|
|||||||
@@ -85,7 +85,12 @@ export default {
|
|||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
updateRoute: 'AssetPermissionUpdate'
|
updateRoute: 'AssetPermissionUpdate',
|
||||||
|
performDelete: ({ row, col }) => {
|
||||||
|
const id = row.id
|
||||||
|
const url = `/api/v1/perms/asset-permissions/${id}/`
|
||||||
|
return this.$axios.delete(url)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user