Skip to content

Commit

Permalink
fix #1882 글을 저장할 때 관리자임에도 태그 필터가 적용되는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
bnu committed May 12, 2016
1 parent 74cd7be commit 82b3e6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/document/document.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ function insertDocument($obj, $manual_inserted = false, $isRestore = false, $isL
*/
function updateDocument($source_obj, $obj, $manual_updated = FALSE)
{
$logged_info = Context::get('logged_info');

if(!$manual_updated && !checkCSRF())
{
return new Object(-1, 'msg_invalid_request');
Expand Down Expand Up @@ -454,7 +456,6 @@ function updateDocument($source_obj, $obj, $manual_updated = FALSE)
// If an author is identical to the modifier or history is used, use the logged-in user's information.
if(Context::get('is_logged') && !$manual_updated)
{
$logged_info = Context::get('logged_info');
if($source_obj->get('member_srl')==$logged_info->member_srl)
{
$obj->member_srl = $logged_info->member_srl;
Expand Down

0 comments on commit 82b3e6a

Please sign in to comment.