Merge branch 'master' into 3686-sharing-repositories
[arvados.git] / apps / workbench / app / models / repository.rb
1 class Repository < ArvadosBase
2   def self.creatable?
3     current_user and current_user.is_admin
4   end
5   def attributes_for_display
6     super.reject { |x| x[0] == 'fetch_url' }
7   end
8   def editable_attributes
9     if current_user.is_admin
10       super
11     else
12       []
13     end
14   end
15 end