summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-06-12 03:40:24 +0000
committercommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-06-12 03:40:24 +0000
commit5db0fa272abed9e2853579de1d6fa698b19c5351 (patch)
tree6bf1b1a12ecd3222aff1eff81ff15f0b95da1de8
parent20b974bff2b9744c793726d970998f86c61df461 (diff)
downloadcacert-boardvoting-5db0fa272abed9e2853579de1d6fa698b19c5351.tar.gz
cacert-boardvoting-5db0fa272abed9e2853579de1d6fa698b19c5351.tar.xz
cacert-boardvoting-5db0fa272abed9e2853579de1d6fa698b19c5351.zip
voting options and new motion links for board members only
git-svn-id: http://svn.cacert.cl/Software/Voting/vote@56 d4452222-2f33-11de-9270-010000000000
-rw-r--r--motions.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/motions.php b/motions.php
index 90899b6..6de0beb 100644
--- a/motions.php
+++ b/motions.php
@@ -109,7 +109,7 @@ BODY;
</td>
<td class="actions">
<?php
- if ($row['status'] == 0) {
+ if ($row['status'] == 0 && $user ) {
?>
<ul>
<li><a href="vote.php?motion=<?php echo($row['id']); ?>&amp;vote=1">Aye</a></li>
@@ -137,9 +137,7 @@ BODY;
<?php if ($items>9) { ?><a href="?page=<?php echo($page+1); ?>">&gt;</a><?php } else { ?>&nbsp;<?php } ?>
</td>
<td class="actions">
- <ul>
- <li><a href="motion.php">New Motion</a></li>
- </ul>
+ <?php if ($user) echo('<ul><li><a href="motion.php">New Motion</a></li></ul>'); ?>
</td>
</tr>
<?php