VirtualBox

Ignore:
Timestamp:
Mar 1, 2017 4:09:45 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113709
Message:

testmanager: Added Users::fReadOnly and the necessary checks associated with it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuiadmintestbox.py

    r65423 r65914  
    357357            ]
    358358
    359         if isDbTimestampInfinity(oEntry.tsExpire):
    360             aoActions += [
    361                 WuiTmLink('Edit', WuiAdmin.ksScriptName,
    362                           { WuiAdmin.ksParamAction: WuiAdmin.ksActionTestBoxEdit,
    363                             TestBoxData.ksParam_idTestBox: oEntry.idTestBox, } ),
    364                 WuiTmLink('Remove', WuiAdmin.ksScriptName,
    365                           { WuiAdmin.ksParamAction: WuiAdmin.ksActionTestBoxRemovePost,
    366                             TestBoxData.ksParam_idTestBox: oEntry.idTestBox },
    367                           sConfirm = 'Are you sure that you want to remove %s (%s)?' % (oEntry.sName, oEntry.ip) ),
    368             ]
    369 
    370         if oEntry.sOs not in [ 'win', 'os2', ] and oEntry.ip is not None:
    371             aoActions.append(WuiLinkBase('ssh', 'ssh://vbox@%s' % (oEntry.ip,),));
     359        if self._oDisp is None or not self._oDisp.isReadOnlyUser():
     360            if isDbTimestampInfinity(oEntry.tsExpire):
     361                aoActions += [
     362                    WuiTmLink('Edit', WuiAdmin.ksScriptName,
     363                              { WuiAdmin.ksParamAction: WuiAdmin.ksActionTestBoxEdit,
     364                                TestBoxData.ksParam_idTestBox: oEntry.idTestBox, } ),
     365                    WuiTmLink('Remove', WuiAdmin.ksScriptName,
     366                              { WuiAdmin.ksParamAction: WuiAdmin.ksActionTestBoxRemovePost,
     367                                TestBoxData.ksParam_idTestBox: oEntry.idTestBox },
     368                              sConfirm = 'Are you sure that you want to remove %s (%s)?' % (oEntry.sName, oEntry.ip) ),
     369                ]
     370
     371            if oEntry.sOs not in [ 'win', 'os2', ] and oEntry.ip is not None:
     372                aoActions.append(WuiLinkBase('ssh', 'ssh://vbox@%s' % (oEntry.ip,),));
    372373
    373374        return [ self._getCheckBoxColumn(iEntry, oEntry.idTestBox),
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette