]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/ikiwiki/pagespec/attachment/discussion.mdwn
ask question
[ikiwiki.git] / doc / ikiwiki / pagespec / attachment / discussion.mdwn
index e520cf151b50764d7a1be36e610d6d7e9718f45e..abfb62edc925476d2360a481ea65c205a3e9ab3d 100644 (file)
@@ -1,3 +1,17 @@
 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]]
+
+Anyway 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.)