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
(from parent 1:
5b3e62f
)
only display 'Add Node' to admins
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Mon, 15 Jun 2009 18:33:03 +0000
(18:33 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Mon, 15 Jun 2009 18:33:03 +0000
(18:33 +0000)
modules/planetlab.module
patch
|
blob
|
history
diff --git
a/modules/planetlab.module
b/modules/planetlab.module
index
69e6852
..
ec784be
100644
(file)
--- a/
modules/planetlab.module
+++ b/
modules/planetlab.module
@@
-210,7
+210,8
@@
function planetlab_block($op = 'list', $delta = 0, $edit = array()) {
$bullet_item = '';
$bullet_item .= href(l_admin(),"Admin search");
$bullet_item .= ul_start();
- $bullet_item .= leaf( href (l_node_add(),"Add Node"));
+ if ( plc_is_admin() )
+ $bullet_item .= leaf( href (l_node_add(),"Add Node"));
$bullet_item .= leaf( href( l_tags(),"Tags"));
$bullet_item .= leaf( href( l_nodegroups(),"Node groups"));
$bullet_item .= leaf (href(l_peers(),'Peers'));