You are here: Foswiki>Tasks Web>Item2648 (04 Jan 2015, GeorgeClark)Edit Attach

To let us create an ideas box on the intranet I need entries to be anonymous. But users may be logged in already, so their entry has to be anonimized.

Because creating a mini app with comment plugin is usually done with templates, it is preferable that an %ANONYMOUS% user setting can be passed in the comment template.

Caveats:
  • Func:saveTopic does not accept a user parameter
  • Store:saveTopic is not published API

AC

Hm, if you don't provide %WIKIUSERNAME% or use TWikiGuest or your %ANONYMOUS% setting as signature in your output template you get the desired effect, don't you?

FJ
Franz, no. TWiki still requires a user to be logged in to save a comment, and if they are logged in, then their name appears in the change log and page history. Arthur wants more anonymity than that.

If you can get the user object, then you can set $TWiki::Plugins::SESSION->{user}, after which Func::saveTopic will save as that user. On reflection, rather than %ANONYMOUS%, I think %AS_USER{"ArthurClemens"}% would be more intention-revealing.

Longer term, the Func API needs to be extended to support saving as an identified user. Something for the next generation FuncFourOneContrib, I guess.

CC

I see that this is a useful feature, but be careful, this breaks the "complete audit trail" model. If implemented it should be disabled by default, protected so that only admins can enable topic save as someone else (e.g. not possible to simply specify it in a comment template topic), and highlighted in big red letters in the documentation.

  • I don't agree completely. The effect on the topic history would be the same as on a TWiki installation that is set up with save enabled by TWikiGuests: you would get a revision list of TWikiGuests. -- AC
    • Most corporate sites do not have a guest account because of audit trail. The CommenPlugin is a pre-installed Plugin, so a save-as-someone-else feature should be disabled by default. It could be enabled if needed, such as with an {allowAnonymousSave} switch or an ALLOWANONYMOUSSAVE Plugin setting. -- PTh
    • I think I misunderstand "complete audit trail". Not important. -- AC

-- PTh

Foswiki 1.2 comment plugin now allows guests to comment (if enabled). Setting to No Action.

-- Main.GeorgeClark - 04 Jan 2015 - 21:48

ItemTemplate edit

Summary Allow CommentPlugin to save entries anonymously
ReportedBy TWiki:Main.ArthurClemens
Codebase
SVN Range Wed, 12 Jul 2006 build 11001
AppliesTo Extension
Component CommentPlugin
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r11 - 04 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy