mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#17154543 : restrict users to write an article if the user does not have enough point
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5170 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3b4eb75c2d
commit
df36ec4ccd
9 changed files with 39 additions and 10 deletions
|
|
@ -328,6 +328,25 @@
|
|||
|
||||
// 글을 수정하려고 할 경우 권한이 없는 경우 비밀번호 입력화면으로
|
||||
if($oDocument->isExists()&&!$oDocument->isGranted()) return $this->setTemplateFile('input_password_form');
|
||||
if(!$oDocument->isExists())
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
$point_config = $oModuleModel->getModulePartConfig('point',$this->module_srl);
|
||||
$logged_info = Context::get('logged_info');
|
||||
$oPointModel = &getModel('point');
|
||||
$pointForInsert = $point_config["insert_document"];
|
||||
if($pointForInsert < 0)
|
||||
{
|
||||
if( !$logged_info )
|
||||
{
|
||||
return $this->dispBoardMessage('msg_not_permitted');
|
||||
}
|
||||
else if (($oPointModel->getPoint($logged_info->member_srl) + $pointForInsert )< 0 )
|
||||
{
|
||||
return $this->dispBoardMessage('msg_not_enough_point');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Context::set('document_srl',$document_srl);
|
||||
Context::set('oDocument', $oDocument);
|
||||
|
|
|
|||
|
|
@ -43,4 +43,6 @@
|
|||
$lang->about_admin_mail = 'A mail will be sent when an article or comment is submitted.<br />Multiple mails can be sent with commas(,).';
|
||||
|
||||
$lang->about_category_color = 'You can set font color of category.';
|
||||
?>
|
||||
|
||||
$lang->msg_not_enough_point = 'Your point is not enough to write an article in this board.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -45,5 +45,5 @@
|
|||
$lang->about_admin_mail = '글이나 댓글이 등록될때 등록된 메일주소로 메일이 발송됩니다<br /> ,(콤마)로 연결시 다수의 메일주소로 발송할 수 있습니다.';
|
||||
|
||||
$lang->about_category_color = '분류 폰트색깔을 지정합니다.';
|
||||
|
||||
?>
|
||||
$lang->msg_not_enough_point = 'Your point is not enough to write an article in this board.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -40,4 +40,7 @@
|
|||
$lang->about_consultation = "Les membres non-administratifs verront seulement les ariticles d\'eux-même.\nNon-membres ne pourraient pas écrire des articles quand la Consultation est appliqué.";
|
||||
$lang->about_secret = '게시판 및 댓글의 비밀글 사용할 수 있도록 합니다.';
|
||||
$lang->about_admin_mail = 'Un message éléctronique sera envoyé à l\'adresse inscrite quand un article ou commentaire se soumet. <br />On peut inscrire multiple adresses délimité par les virgules.';
|
||||
?>
|
||||
|
||||
$lang->about_category_color = 'You can set font color of category.';
|
||||
$lang->msg_not_enough_point = 'Your point is not enough to write an article in this board.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -46,4 +46,5 @@
|
|||
$lang->about_admin_mail = '書き込みやコメントが掲載される時、登録メールアドレス宛にメールが送信されます。<br /> 複数のメールアドレスへ送信する場合は「,」(半額コンマ)区切りで登録して下さい。';
|
||||
|
||||
$lang->about_category_color = 'カテゴリのフォント色を設定します。';
|
||||
?>
|
||||
$lang->msg_not_enough_point = 'Your point is not enough to write an article in this board.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -46,4 +46,6 @@
|
|||
$lang->about_admin_mail = '글이나 댓글이 등록될때 등록된 메일주소로 메일이 발송됩니다<br /> ,(콤마)로 연결시 다수의 메일주소로 발송할 수 있습니다.';
|
||||
|
||||
$lang->about_category_color = '분류 폰트색깔을 지정합니다.';
|
||||
?>
|
||||
|
||||
$lang->msg_not_enough_point = '포인트가 부족합니다';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -47,5 +47,5 @@
|
|||
$lang->about_admin_mail = '글이나 댓글이 등록될때 등록된 메일주소로 메일이 발송됩니다<br /> ,(콤마)로 연결시 다수의 메일주소로 발송할 수 있습니다.';
|
||||
|
||||
$lang->about_category_color = '분류 폰트색깔을 지정합니다.';
|
||||
|
||||
?>
|
||||
$lang->msg_not_enough_point = 'Your point is not enough to write an article in this board.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -46,4 +46,5 @@
|
|||
$lang->about_secret = '设置主题及评论当中使用密帖与否。';
|
||||
$lang->about_admin_mail = '有新的主题或评论时,将自动发电子邮件来通知管理员。<br />多数电子邮件由逗号(,)来分隔。';
|
||||
$lang->about_category_color = '请指定分类颜色(必须带#符号)。ex)#ff0000';
|
||||
?>
|
||||
$lang->msg_not_enough_point = 'Your point is not enough to write an article in this board.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -42,4 +42,5 @@
|
|||
$lang->about_secret = '可用於討論板或回覆時選擇是否使用。';
|
||||
$lang->about_admin_mail = '有新的主題或評論時,將自動發電子郵件來通知管理員。<br />多數電子郵件由逗號(,)區隔。';
|
||||
$lang->about_category_color = '設定分類顏色。';
|
||||
?>
|
||||
$lang->msg_not_enough_point = 'Your point is not enough to write an article in this board.';
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue