diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb
index dbf15a566..d7f6ddeb5 100644
--- a/app/views/layouts/base_projects.html.erb
+++ b/app/views/layouts/base_projects.html.erb
@@ -167,9 +167,9 @@
<%= link_to l(:field_user_active_changeset), {:controller => 'repositories', :action => 'show', :id => @project.id}, :style => "color:#3CA5C6" %>
(<%= @project.repositories.count %>)
- <% if User.current.logged? && User.current.member_of?(@project) %>
- <%= link_to "+创建版本库", newrepo_project_repository_path(@project, :course => @project.project_type),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %>
- <% end %>
+ <%# if User.current.logged? && User.current.member_of?(@project) && User.current.allowed_to?(:manage_repository, @project) %>
+ <%#= link_to "+创建版本库", newrepo_project_repository_path(@project, :course => @project.project_type),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %>
+ <%# end %>
<% end %>