Actualizar plugin Questions a 1.0.2 light
This commit is contained in:
parent
b9e569d03f
commit
b37d1305f1
64 changed files with 394 additions and 229 deletions
|
@ -3,7 +3,7 @@
|
|||
# This file is a part of Redmine Q&A (redmine_questions) plugin,
|
||||
# Q&A plugin for Redmine
|
||||
#
|
||||
# Copyright (C) 2011-2018 RedmineUP
|
||||
# Copyright (C) 2011-2020 RedmineUP
|
||||
# http://www.redmineup.com/
|
||||
#
|
||||
# redmine_questions is free software: you can redistribute it and/or modify
|
||||
|
@ -74,7 +74,7 @@ class RedmineQuestions::TestCase
|
|||
end
|
||||
|
||||
def self.prepare
|
||||
Role.where(:id => [1, 3]).each do |r|
|
||||
Role.where(:id => 1).each do |r|
|
||||
# user_2
|
||||
r.permissions << :view_questions
|
||||
r.permissions << :global_view_questions
|
||||
|
@ -103,11 +103,6 @@ class RedmineQuestions::TestCase
|
|||
r.save
|
||||
end
|
||||
|
||||
Role.where(:id => 1).each do |r|
|
||||
r.permissions << :accept_answers
|
||||
r.save
|
||||
end
|
||||
|
||||
Project.where(:id => [1, 2, 3, 4, 5]).each do |project|
|
||||
EnabledModule.create(:project => project, :name => 'questions')
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue