Browse files

Improved public projects

Public projects listed in the public section will be linked to the
actual project's page. Public projects now give any user Reporter-level
permissions to the project, allowing them to download the code, read
and create issues, and view anything else in the project's pages.
  • Loading branch information...
slottermoser committed Apr 19, 2013
1 parent 951273f commit b63333419adf616e1893e5bd36af16fce0903a0c
Showing with 3 additions and 2 deletions.
  1. +1 −1 app/models/ability.rb
  2. +1 −0 app/views/projects/_form.html.haml
  3. +1 −1 app/views/public/projects/index.html.haml
@@ -34,7 +34,7 @@ def project_abilities(user, project)
elsif team.developers.include?(user)
rules << project_dev_rules
elsif team.reporters.include?(user)
elsif team.reporters.include?(user) or project.public?
rules << project_report_rules
elsif team.guests.include?(user)
@@ -56,6 +56,7 @@
%em without any
It will also be listed on the #{link_to "public access directory", public_root_path}.
ANY user will have Reporter-level permissions on the repository.
@@ -9,7 +9,7 @@
= project.name_with_namespace
= link_to_project project
%pre.dark.tiny git clone #{project.http_url_to_repo}

0 comments on commit b633334

Please sign in to comment.