Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
abeed676
Commit
abeed676
authored
Feb 19, 2019
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fix to the new geni-lib feature check.
parent
91bf8a29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
www/aptui/instantiate.ajax
www/aptui/instantiate.ajax
+6
-3
No files found.
www/aptui/instantiate.ajax
View file @
abeed676
...
...
@@ -850,6 +850,7 @@ function Do_RunScript()
global
$this_user
;
global
$ajax_args
;
global
$suexec_output
,
$suexec_output_array
;
$newgenilib
=
0
;
$script
=
""
;
if
(
isset
(
$ajax_args
[
"script"
]))
{
...
...
@@ -882,20 +883,22 @@ function Do_RunScript()
SPITAJAX_RESPONSE
(
$profile
->
rspec
());
}
else
{
SPITAJAX_ERROR
(
1
,
"No rspec for guest user"
);
}
}
}
$this_idx
=
$this_user
->
uid_idx
();
$this_uid
=
$this_user
->
uid
();
if
(
!
(
$profile
->
CanInstantiate
(
$this_user
)
||
ISADMIN
()))
{
SPITAJAX_ERROR
(
1
,
"Not enough permission to instantiate profile"
);
return
;
}
if
(
$profile
->
UseNewGeniLib
())
{
$newgenilib
=
1
;
}
}
if
(
preg_match
(
"/^import/m"
,
$script
))
{
$command
=
"webrungenilib"
;
if
(
Profile
::
UseNewGeniLib
(
$this_user
)
)
{
if
(
$newgenilib
)
{
$command
.
=
" -N "
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment