Skip to content
Browse files
patch: Add Mark Answered Permission
This adds the Mark Answered permission by default to Roles with the Reply
Permission Enabled. Piggy backs on 5135.
  • Loading branch information
JediKev committed Nov 1, 2019
1 parent d2cb614 commit 9d4bcb5ac754d8c3940224ab42f2ccc39ceda842
Showing with 5 additions and 0 deletions.
  1. +5 −0 include/upgrader/streams/core/914098f4-87d4a323.patch.sql
@@ -9,6 +9,11 @@ ALTER TABLE `%TABLE_PREFIX%email`
ADD `smtp_userid` varchar(255) NOT NULL AFTER `smtp_auth_creds`,
ADD `smtp_userpass` varchar(255) CHARACTER SET ascii NOT NULL AFTER `smtp_userid`;

-- Add Default MarkAnswered Permission For Roles w/ Reply Permission
SET A1.`permissions` = REPLACE(A1.`permissions`, '"ticket.reply":1,', '"ticket.reply":1,"ticket.markanswered":1,')
WHERE A1.`permissions` LIKE '%"ticket.reply":1%';

-- Finished with patch
SET `value` = '87d4a3233469728d83b86d3ee2f066e1'

0 comments on commit 9d4bcb5

Please sign in to comment.