diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-12-07 17:03:50 +0300 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-12-07 17:03:50 +0300 |
commit | e53b350cb6db7438c1a50c500b324fd87afc41c4 (patch) | |
tree | 61626047bbb7c248e1e245dc9dde291a9ae65b5a /app/models/lfs_object.rb | |
parent | b2c4675cb0e681027334e5bd046451d3116924c8 (diff) |
Add specs for showing lfs object in UI.
Diffstat (limited to 'app/models/lfs_object.rb')
-rw-r--r-- | app/models/lfs_object.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/lfs_object.rb b/app/models/lfs_object.rb index a243c7b77cc..18657c3e1c8 100644 --- a/app/models/lfs_object.rb +++ b/app/models/lfs_object.rb @@ -13,4 +13,8 @@ class LfsObject < ActiveRecord::Base project end end + + def project_allowed_access?(project) + projects.exists?(storage_project(project).id) + end end |