Skip to content

Commit fc369a5

Browse files
committed
changed apply to role visibility to users-only
1 parent 98ecfa6 commit fc369a5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.emergence
2+
.data

html-templates/projects/project.tpl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,11 @@
295295
{$Role->Role}
296296
</td>
297297
<td style="text-align:right">
298-
<a href="role_application" data-toggle="modal" data-role="{$Role->ID}" data-role_name="{$Role->Role}" data-role_title="{$Project->Title} -- {$Role->Role}" title="Apply" style="margin-left: 4px">
299-
<span class="glyphicon glyphicon-ok"></span>
300-
</a>
298+
{if $.User}
299+
<a href="role_application" data-toggle="modal" data-role="{$Role->ID}" data-role_name="{$Role->Role}" data-role_title="{$Project->Title} -- {$Role->Role}" title="Apply" style="margin-left: 4px">
300+
<span class="glyphicon glyphicon-ok"></span>
301+
</a>
302+
{/if}
301303
{if $.Session->hasAccountLevel('Staff')}
302304
<a href="role" data-toggle="modal" data-role_id="{$Role->ID}" data-role_name="{$Role->Role}" data-role_description="{$Role->Description}" data-role_person="{$Person->Username}" title="Edit Role" style="margin-left: 4px">
303305
<span class="glyphicon glyphicon-edit"></span>

0 commit comments

Comments
 (0)