summaryrefslogtreecommitdiffstats
path: root/js/datamediator.js
diff options
context:
space:
mode:
authorimoore76 <imoore76@users.noreply.github.com>2016-03-24 13:03:22 -0400
committerimoore76 <imoore76@users.noreply.github.com>2016-03-24 13:03:22 -0400
commit91bbc54bb697f25093530c0bba9a9a935c6beae2 (patch)
treea7a97aa238b1696185ab922c27edabb25cc8bed0 /js/datamediator.js
parentce7c35ce03ace030a6213d943df88f2304d11b40 (diff)
parent4a1336e40ad9eb651661d18ce6a3153e979507aa (diff)
downloadphpvirtualbox-91bbc54bb697f25093530c0bba9a9a935c6beae2.zip
phpvirtualbox-91bbc54bb697f25093530c0bba9a9a935c6beae2.tar.gz
phpvirtualbox-91bbc54bb697f25093530c0bba9a9a935c6beae2.tar.bz2
Merge pull request #14 from ashway83/develop
Fixed enforceVMOwnership and vmQuotaPerUser functionality
Diffstat (limited to 'js/datamediator.js')
-rw-r--r--js/datamediator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/datamediator.js b/js/datamediator.js
index a214a4f..c701958 100644
--- a/js/datamediator.js
+++ b/js/datamediator.js
@@ -93,7 +93,7 @@ var vboxVMDataMediator = {
for(var i = 0; i < d.responseData.length; i++) {
// Enforce VM ownership
- if($('#vboxPane').data('vboxConfig').enforceVMOwnership && !$('#vboxPane').data('vboxSession').admin && d.vmlist[i].owner != $('#vboxPane').data('vboxSession').user) {
+ if($('#vboxPane').data('vboxConfig').enforceVMOwnership && !$('#vboxPane').data('vboxSession').admin && d.responseData[i].owner != $('#vboxPane').data('vboxSession').user) {
continue;
}