Disable 'Settings' menu for normal users.

This commit is contained in:
takezoe
2013-06-04 19:55:53 +09:00
parent 043e1b89e6
commit 4ef5fddaf5

View File

@@ -14,9 +14,11 @@
<th class="box-header@if(active=="wiki"){ active}">
<a href="@path/@repository.owner/@repository.name/wiki">Wiki</a>
</th>
@if(loginAccount.isDefined && (loginAccount.get.userType == 1 || loginAccount.get.userName == repository.owner)){
<th class="box-header@if(active=="settings"){ active}">
<a href="@path/@repository.owner/@repository.name/settings">Settings</a>
</th>
}
</tr>
</table>
<script type="text/javascript">