mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
fix comment typo in db/migrate/20150208105930_replace_move_issues_permission.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18844 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -2,7 +2,7 @@ class ReplaceMoveIssuesPermission < ActiveRecord::Migration[4.2]
|
|||||||
def self.up
|
def self.up
|
||||||
Role.all.each do |role|
|
Role.all.each do |role|
|
||||||
if role.has_permission?(:edit_issues) && !role.has_permission?(:move_issues)
|
if role.has_permission?(:edit_issues) && !role.has_permission?(:move_issues)
|
||||||
# inserts one ligne per trakcer and status
|
# inserts one line per tracker and status
|
||||||
rule = WorkflowPermission.connection.quote_column_name('rule') # rule is a reserved keyword in SQLServer
|
rule = WorkflowPermission.connection.quote_column_name('rule') # rule is a reserved keyword in SQLServer
|
||||||
WorkflowPermission.connection.execute(
|
WorkflowPermission.connection.execute(
|
||||||
"INSERT INTO #{WorkflowPermission.table_name} (tracker_id, old_status_id, role_id, type, field_name, #{rule})" +
|
"INSERT INTO #{WorkflowPermission.table_name} (tracker_id, old_status_id, role_id, type, field_name, #{rule})" +
|
||||||
|
|||||||
Reference in New Issue
Block a user