Skip to content

Commit

Permalink
only admin can add project
Browse files Browse the repository at this point in the history
  • Loading branch information
xsir317 committed Nov 26, 2014
1 parent 5deed73 commit 937c989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publisher/app/views/projects/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@section('content')
<table class="uk-table">
<caption>所有项目&nbsp;&nbsp;<a href="/projects/add" class="uk-button uk-button-primary">添加项目</a></caption>
<caption>所有项目&nbsp;&nbsp;<?php if(Auth::user()->is_superadmin):?><a href="/projects/add" class="uk-button uk-button-primary">添加项目</a><?php endif;?></caption>
<thead>
<tr>
<th>项目</th>
Expand Down

0 comments on commit 937c989

Please sign in to comment.