자국 내 외교권자에게는 메시지 보낼 수 있도록 수정
This commit is contained in:
@@ -161,7 +161,7 @@ if($mailbox > 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$destPermission = checkSecretPermission($destUser, false);
|
$destPermission = checkSecretPermission($destUser, false);
|
||||||
if($permission == 4 && $destPermission == 4){
|
if($permission == 4 && $destPermission == 4 && $destUser['nation'] != $me['nation']){
|
||||||
Json::die([
|
Json::die([
|
||||||
'result' => false,
|
'result' => false,
|
||||||
'reason' => '외교권자끼리는 메시지를 보낼 수 없습니다.',
|
'reason' => '외교권자끼리는 메시지를 보낼 수 없습니다.',
|
||||||
|
|||||||
+1
-1
@@ -385,7 +385,7 @@ function refreshMailboxList(obj){
|
|||||||
|
|
||||||
var $item = $('<option value="{0}">{1}</option>'.format(generalID, textName));
|
var $item = $('<option value="{0}">{1}</option>'.format(generalID, textName));
|
||||||
|
|
||||||
if(permissionLevel == 4 && isAmbassador){
|
if(permissionLevel == 4 && isAmbassador && myNation.mailbox != nation.mailbox){
|
||||||
$item.prop('disabled', true);
|
$item.prop('disabled', true);
|
||||||
}
|
}
|
||||||
$optgroup.append($item);
|
$optgroup.append($item);
|
||||||
|
|||||||
Reference in New Issue
Block a user