4632 - added $_SESSION['is_admin'] around the creat coruse album button so it won...
authorgreg gay <ggay@ocad.ca>
Tue, 23 Aug 2011 15:24:02 +0000 (15:24 -0000)
committergreg gay <ggay@ocad.ca>
Tue, 23 Aug 2011 15:24:02 +0000 (15:24 -0000)
docs/themes/default/photos/pa_create_album.tmpl.php

index eaf858a..e7cd20d 100644 (file)
@@ -10,7 +10,9 @@
        <div class="row">
                <div class="left_row"<label for="album_type"><?php echo _AT('pa_album_type'); ?></label></div>
                <label for="my_album"><?php echo _AT('pa_my_albums'); ?></label><input type="radio" name="album_type" id="my_album" value="1" checked="checked" />
+       <?php  if($_SESSION['is_admin']){?>
                <label for="course_album"><?php echo _AT('pa_course_albums'); ?></label><input type="radio" name="album_type" id="course_album" value="2" />
+       <?php }?>
        </div>
        <?php endif; ?>
        <div class="row">