X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/a6fa03c9615ffab24909d6fac4d3bf06a104f400..ad303e878e65c72bf31eb676ced866be56bbee91:/doc/ikiwiki/pagespec/attachment/discussion.mdwn diff --git a/doc/ikiwiki/pagespec/attachment/discussion.mdwn b/doc/ikiwiki/pagespec/attachment/discussion.mdwn index e520cf151..34f21f84a 100644 --- a/doc/ikiwiki/pagespec/attachment/discussion.mdwn +++ b/doc/ikiwiki/pagespec/attachment/discussion.mdwn @@ -1,3 +1,18 @@ Would it be possible to factor out this pagespec code so that other plugins can use it without enabling attachments? I am interested for [[todo/mbox]] --[[DavidBremner]] + +> I can split out all of them except for `ip()` and `user()` easily. I +> have just changed the code so the rest will test the existing source file +> is no other filename is specified. Do you have any reason to want to +> check ip addresses and user names? Not sure what to call the plugin, but +> breaking it out is easy enough. --[[Joey]] + +>> I don't think `ip()` and `user()` necessarily make sense for a mail box +>> that is already on the disk, so no, I don't think I'll miss +>> them. --[[DavidBremner]] + +>>> Done, [[plugins/filecheck]] --[[Joey]] + + +Any way to make it so an edit page doesn't offer the attachment capability unless it matches a specific user, is an admin, and/or is an allowed page? (For now, I have it on all pages, and then it prohibits after I submit based on the allowed_attachments.)