[Hiki-dev:00785] Re: ユーザ管理プラグインの追加

Zurück zum Archiv-Index

Kouhei Sutou kou****@cozmi*****
2005年 6月 14日 (火) 21:25:11 JST


須藤です.

In <m3br6als8x.wl%kazuh****@fdiar*****>
  "[Hiki-dev:00777] Re: ユーザ管理プラグインの追加 (Re: ユーザ管理対応への布石のコミット)" on Mon, 13 Jun 2005 14:50:54 +0900,
  Kazuhiko <kazuh****@fdiar*****> wrote:

> はい、予定していました。というわけで、実装しました。cvs や svn のコミット
> 時のログメッセージとして、ユーザがあればそれを、なければ従来どおり IP ア
> ドレスを用います。

パスワードが何も設定されていないときも従来どおりの動作をして
ほしいです.

パスワードが設定されていないときは,どのユーザもadminとして
扱うよりは,どのユーザもanonymousとして扱ってほしいからです.

# なんか,説得力が無いというか意味のわからない理由ですが...
-------------- next part --------------
? misc/hikifarm/index.cgi.rss
Index: hiki/command.rb
===================================================================
RCS file: /cvsroot/hiki/hiki/hiki/command.rb,v
retrieving revision 1.52
diff -u -p -r1.52 command.rb
--- hiki/command.rb	13 Jun 2005 14:38:28 -0000	1.52
+++ hiki/command.rb	14 Jun 2005 12:21:06 -0000
@@ -339,7 +339,7 @@ module Hiki
           keyword = @params['keyword'][0].split("\n").collect {|k|
             k.chomp.strip}.delete_if{|k| k.size == 0}
           attr = [[:keyword, keyword.uniq], [:title, title]]
-          attr << [:editor, @plugin.user] if****@plugi*****
+          attr << [:editor, @plugin.user] if****@plugi***** and !@conf.password.empty?
           @db.set_attribute(page, attr)
         else
           @cmd = 'conflict'
Index: plugin/00default.rb
===================================================================
RCS file: /cvsroot/hiki/hiki/plugin/00default.rb,v
retrieving revision 1.31
diff -u -p -r1.31 00default.rb
--- plugin/00default.rb	13 Jun 2005 05:49:19 -0000	1.31
+++ plugin/00default.rb	14 Jun 2005 12:21:06 -0000
@@ -88,7 +88,7 @@ end
 #===== update_proc
 add_update_proc {
   updating_mail if****@conf*****_on_update
-  if @user
+  if @user and !@conf.password.empty?
     @conf.repos.commit(@page, CGI::escape(@user))
   else
     @conf.repos.commit(@page)


Hiki-dev メーリングリストの案内
Zurück zum Archiv-Index