https://redmine.tokyo/
https://redmine.tokyo/welcome/index/themes/redmine_tokyo_theme/favicon/favicon.ico?1665553863
2017-04-07T01:37:40Z
redmine.tokyo
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=3571
2017-04-07T01:37:40Z
前田 剛
<ul></ul><p>Redmine本体の機能として、sudo_mode みたいに coniguration.yml で有効・無効が切り替えられるようになっているとよいですね。</p>
<p>こんな感じで。</p>
<pre>
user_deletion: false
</pre>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=3572
2017-04-07T11:47:26Z
中村 浩平
<ul></ul><p>ユーザ削除されて嬉しい状況が想像できないので、<br />消せない方がうれしいですねぇ。</p>
<hr />
<p>今回はほとんど使っていないユーザを誤削除してしまったので、<br />あきらめもついたのですが、<br />毎日使っているユーザの場合は、どうにか復旧手段を考えねばならない。</p>
<p>ユーザを再作成後、旧ユーザのIDにUPDATEすればいいわけだが、<br />対象がどこまであるやら。</p>
<hr />
<p>ソース改造とサーバ再起動は当面できないので、<br />View Customize Plugin でユーザー管理画面の「削除」ボタンを非表示かしようと思います。</p>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=3573
2017-04-07T12:30:25Z
奈良 裕記
<ul></ul><p>ユーザ削除時に、<br />models/user.rbの<br /><pre>
before_destroy :remove_references_before_destroy
after_destroy :deliver_security_notification
.....
# Removes references that are not handled by associations
# Things that are not deleted are reassociated with the anonymous user
def remove_references_before_destroy
</pre></p>
<p>も実行されます。<br />過去のデータはanonymous扱いになるので、confidentialなデータがあると不味そう。<br />変更経緯を追えなくなりますので、自分はロック一択です。</p>
<p>CALコスト削減等で、退職者を削除したい場合もあるでしょうが、<br />Redmineのユーザ数単位有料ソフトだとロックしたユーザID分はカウントしないものが多いかな?<br />(某プラグインはそう聞いたことがあります)</p>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=3575
2017-04-07T15:10:11Z
奈良 裕記
<ul><li><strong>説明</strong> を更新 (<a title="差分を表示" href="/journals/3575/diff?detail_id=1989">差分</a>)</li></ul>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=3586
2017-04-10T00:11:46Z
前田 剛
<ul></ul><p>もともとユーザーの削除機能は無かったのですが、要望が多く1.2.0で追加されました。<br /><a class="external" href="http://www.redmine.org/issues/7296">http://www.redmine.org/issues/7296</a></p>
<p>機能を消したら消したで反対意見が多く寄せられるのではないかと思います。一度追加した機能を消すのは大変です。</p>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=3589
2017-04-10T13:09:02Z
奈良 裕記
<ul></ul><p>何事も過去の背景は知っておくべきですね。</p>
<p>SPAM蔓延る環境だとdelete必須というのは理解できます。<br />自分の環境では考える必要ありませんが。<br />6751に+1してきます。</p>
<p>Advanced user administration<br /><a class="external" href="http://www.redmine.org/issues/6751">http://www.redmine.org/issues/6751</a></p>
<blockquote>
<p>It would be nice if there were better ways to deal with deprecated/old/spam users, instead of just activating/locking them.</p>
</blockquote>
<p>..</p>
<blockquote>
<p>However, some organisations may want to keep a log of everything (prevent deletion).<br />In that case, this can perhaps be an option that only an Administrator can set.</p>
</blockquote>
<p>Delete Users and automatically ticket change<br /><a class="external" href="http://www.redmine.org/issues/1572">http://www.redmine.org/issues/1572</a></p>
<blockquote>
<p>1) In order to free the username for other users administrators should be allowed to find inactive users and delete them.</p>
</blockquote>
<p>Allow deletion of Pending User, not yet activated<br /><a class="external" href="http://www.redmine.org/issues/3433">http://www.redmine.org/issues/3433</a></p>
<p>Accepting new users<br /><a class="external" href="http://www.redmine.org/boards/2/topics/5649">http://www.redmine.org/boards/2/topics/5649</a></p>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=3593
2017-04-12T03:16:14Z
中村 浩平
<ul><li><strong>説明</strong> を更新 (<a title="差分を表示" href="/journals/3593/diff?detail_id=1991">差分</a>)</li></ul><p>そんなことがあったんですね。勉強になります。</p>
<hr />
<p>View customize Plugin で削除ボタンを非表示化できたので、<br />説明欄にカスタマイズコードを張っておきました。</p>
<p>・ユーザー一覧ページ /redmine/users<br />・ユーザー編集画面 /redmine/users/XX/edit</p>
<p>の2箇所で削除ボタンの非表示化を確認しております。</p>
<p>ツイート: <a class="external" href="https://twitter.com/netazone/status/851994363425157121">https://twitter.com/netazone/status/851994363425157121</a></p>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=3594
2017-04-12T12:19:11Z
奈良 裕記
<ul><li><strong>説明</strong> を更新 (<a title="差分を表示" href="/journals/3594/diff?detail_id=1992">差分</a>)</li><li><strong>担当者</strong> を削除 (<del><i>奈良 裕記</i></del>)</li><li><strong>対象バージョン</strong> を <i>ソース修正対応</i> から <i>Plugin対応済</i> に変更</li></ul>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=3595
2017-04-12T12:20:58Z
奈良 裕記
<ul><li><strong>説明</strong> を更新 (<a title="差分を表示" href="/journals/3595/diff?detail_id=1995">差分</a>)</li></ul>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=7087
2019-10-05T10:31:36Z
奈良 裕記
<ul><li><strong>説明</strong> を更新 (<a title="差分を表示" href="/journals/7087/diff?detail_id=4581">差分</a>)</li></ul>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=7201
2019-10-13T18:27:43Z
奈良 裕記
<ul><li><strong>説明</strong> を更新 (<a title="差分を表示" href="/journals/7201/diff?detail_id=4690">差分</a>)</li></ul>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=8480
2020-12-10T06:48:34Z
前田 剛
<ul><li><strong>ファイル</strong> <a href="/attachments/594">clipboard-202012101548-yrnlc.png</a> <a class="icon-only icon-download" title="ダウンロード" href="/attachments/download/594/clipboard-202012101548-yrnlc.png">clipboard-202012101548-yrnlc.png</a> を追加</li></ul><p>Redmine 4.2 / RedMica 1.3より、ユーザーとプロジェクトの誤削除防止対策が組み込まれます。</p>
<p>ユーザー削除のときはログインID、プロジェクト削除のときはプロジェクト識別子の入力が確認画面で必要になります。</p>
<p><a href="https://www.redmine.org/issues/34417" class="external">Patch #34417: Require explicit confirmation when deleting a user or a project</a></p>
<p><img src="https://redmine.tokyo/attachments/download/594/clipboard-202012101548-yrnlc.png" alt="" loading="lazy" /></p>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=8481
2020-12-10T15:39:23Z
奈良 裕記
<ul><li><strong>説明</strong> を更新 (<a title="差分を表示" href="/journals/8481/diff?detail_id=5687">差分</a>)</li></ul>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=8537
2021-01-04T09:22:33Z
奈良 裕記
<ul><li><strong>説明</strong> を更新 (<a title="差分を表示" href="/journals/8537/diff?detail_id=5743">差分</a>)</li></ul>
Unofficial Redmine Cooking - QA #313: ユーザーの誤削除を絶対にさせない
https://redmine.tokyo/issues/313?journal_id=8798
2021-04-25T18:30:56Z
奈良 裕記
<ul><li><strong>説明</strong> を更新 (<a title="差分を表示" href="/journals/8798/diff?detail_id=5991">差分</a>)</li></ul>