Skip to content

Commit

Permalink
Improved public projects
Browse files Browse the repository at this point in the history
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 b633334
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/ability.rb
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions app/views/projects/_form.html.haml
Expand Up @@ -56,6 +56,7 @@
%em without any
authentification.
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.

%fieldset.features
%legend
Expand Down
2 changes: 1 addition & 1 deletion app/views/public/projects/index.html.haml
Expand Up @@ -9,7 +9,7 @@
%li.clearfix
%h5
%i.icon-share
= project.name_with_namespace
= link_to_project project
.pull-right
%pre.dark.tiny git clone #{project.http_url_to_repo}
%p.description
Expand Down

0 comments on commit b633334

Please sign in to comment.