-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
他人の作成した活動を変更する際に確認メッセージを出す。(モバイルデバイスを用いているかの識別とシステム変数未対応) #1084
base: main
Are you sure you want to change the base?
他人の作成した活動を変更する際に確認メッセージを出す。(モバイルデバイスを用いているかの識別とシステム変数未対応) #1084
Conversation
@@ -1609,6 +1609,7 @@ | |||
'INVALID_NUMBER_OF' => '無効な数字:', | |||
'INVALID_NUMBER' => '無効な数字', | |||
'JS_LBL_ARE_YOU_SURE_YOU_WANT_TO_DELETE' => '削除しますか?', | |||
'JS_EDIT_OTHERS_EVENT_CONFIRMATION' => '他人の活動に変更を加えますか?', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
エラーメッセージですが、「他ユーザーの活動を変更しますか?」でお願いします。
$result = $adb->pquery($query, $check_activity); | ||
$currentUserId = $current_user->id; | ||
$creatorId = $adb->query_result($result,0,"smcreatorid"); | ||
if($currentUserId != $creatorId){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
作成者で判定するのではなく、「担当」か「参加者に含まれているか」で判定したほうがよさそうです。
以下の手順の警告を解消したいためです。
- ユーザー1が参加者にユーザー2を追加して活動を作成
- ユーザー2が担当の活動も自動作成される
- ユーザー2が 2. で作成された活動を編集しようとすると警告が表示
↑これは警告を出したくない
活動をドラッグして時間変更した場合も警告表示させてほしいです。 |
承知しました! |
要件をこちらで調整しましたので、以下に修正していただけないでしょうか。
前回レビューと合わせて、ご確認のほどよろしくお願いいたします。 |
承知いたしました。 |
関連Issue / Related Issue
不具合の内容 / Bug
原因 / Cause
変更内容 / Details of Change
スクリーンショット / Screenshot
他人の活動を編集する際に、画像のようなメッセージを出す。

影響範囲 / Affected Area
活動の編集/削除の範囲。
チェックリスト / Check List
備考 / Remarks
システム変数にて制御を行えるように修正しています。