Commit ec638048 authored by Angus MacArthur's avatar Angus MacArthur

Made fixes suggested by @randx in pull request

See https://github.com/gitlabhq/gitlabhq/pull/3597#discussion-diff-4014638
parent de8df1be
...@@ -60,15 +60,16 @@ class Ability ...@@ -60,15 +60,16 @@ class Ability
:read_note, :read_note,
:write_project, :write_project,
:write_issue, :write_issue,
:write_note, :write_note
:fork_project
] ]
end end
def project_report_rules def project_report_rules
project_guest_rules + [ project_guest_rules + [
:download_code, :download_code,
:write_snippet :write_snippet,
:fork_project
] ]
end end
......
class CreateForkedProjectLinks < ActiveRecord::Migration class CreateForkedProjectLinks < ActiveRecord::Migration
def change def change
create_table :forked_project_links do |t| create_table :forked_project_links do |t|
t.integer :forked_to_project_id, :null => false t.integer :forked_to_project_id, null: false
t.integer :forked_from_project_id, :null => false t.integer :forked_from_project_id, null: false
t.timestamps t.timestamps
end end
add_index :forked_project_links, :forked_to_project_id, :unique => true add_index :forked_project_links, :forked_to_project_id, unique: true
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment