mirror of
https://github.com/jumpserver/lina.git
synced 2025-11-08 02:18:44 +00:00
Compare commits
2 Commits
pr@v3@fixe
...
v2.4.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a8230b7da | ||
|
|
d5ed85f973 |
@@ -24,7 +24,7 @@ export default {
|
||||
'currentUser'
|
||||
]),
|
||||
isExpire() {
|
||||
if (this.currentUser.role !== 'Admin') {
|
||||
if (!this.publicSettings.XPACK_ENABLED || this.currentUser.role !== 'Admin') {
|
||||
return false
|
||||
}
|
||||
const intervalDays = this.getIntervalDays(this.licenseData.date_expired)
|
||||
|
||||
@@ -85,7 +85,12 @@ export default {
|
||||
},
|
||||
actions: {
|
||||
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