Initial support for #2677

This commit is contained in:
Type-kun
2016-09-17 16:42:00 +05:00
parent bbcf2ee22d
commit a718560554
2 changed files with 37 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ class DmailsController < ApplicationController
private
def check_privilege(dmail)
if !dmail.visible_to?(CurrentUser.user)
if !dmail.visible_to?(CurrentUser.user, params[:key])
raise User::PrivilegeError
end
end