git://git.onelab.eu
/
plewww.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52c080a
)
redirect pi's and techs to register wizard. only display 'Insuffieient privs' error...
author
Tony Mack
<tmack@cs.princeton.edu>
Thu, 25 Feb 2010 22:28:34 +0000
(22:28 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Thu, 25 Feb 2010 22:28:34 +0000
(22:28 +0000)
planetlab/nodes/node_add.php
patch
|
blob
|
history
diff --git
a/planetlab/nodes/node_add.php
b/planetlab/nodes/node_add.php
index
98aa70e
..
5bb4796
100644
(file)
--- a/
planetlab/nodes/node_add.php
+++ b/
planetlab/nodes/node_add.php
@@
-18,7
+18,12
@@
require_once 'form.php';
// if not a admin, pi, or tech then redirect to node index
// xxx does not take site into account
$has_privileges=plc_is_admin();
+$is_pi_or_tech=plc_is_pi() || plc_is_tech();
if( ! $has_privileges) {
+ if ( $is_pi_or_tech) {
+ drupal_goto(l_register_node());
+ return 0;
+ }
drupal_set_error ("Insufficient provileges to add a node");
header( "index.php" );
return 0;