I'll try it, but it's strange... oh!

in the function BOLTlog, the remapping of empty targets to "log.
$pagelink" is done after a check for write permissions, which means
the empty page is checked for write permissions instead of log.
$pagelink.

That suggests that this is in fact a bug regarding logs without a
specified target.

That would explain it.

On May 21, 6:59 pm, The Editor <[email protected]> wrote:
> They probably don't have write permission.
>
> Set site.auth.write to
>
> log*: @key_maillist
>
> And then insert in the form (before the log command)
>
> [session authkey maillist]
>
> This basically extends a person's write permissions to the form
> submission, without giving them the ability to actually edit the page.
>
> Not tested... Let me know if it doesn't work right.
>
> Cheers,
> Dan
>
> On Thu, May 21, 2009 at 12:56 PM, DrunkenMonk <[email protected]> wrote:
>
> > I'm trying to get some log functionality working in order to create
> > maillists. It works for the superuser, but not for normal members.
>
> > I have the page action.email_list with the following code:
> > --------------------------------------------------------------------------------------------
> > !{:title}
>
> > email list: {p}
>
> > [if !inpage log.{p} {id}]`
> > [form][submit SUBSCRIBE]
> > [session log {id}]
> > [session nextpage {p}&action={action}]
> > [form]
> > [else]`
> > [form][submit UNSUBSCRIBE]
> > [session log "{id} delimiter='
> > ' flags='remove'"]
> > [session nextpage {p}&action={action}]
> > [form]
> > [if]`
> > [if admin]
> > [form]
> > List owner: [text owner width=32 {:owner}]
> > [session savedata owner]
> > [session nextpage {p}&action={action}]
> > [submit SAVE]
> > [form]
> > [if]
> > [if ingroup {:owner}]
> > [form]
> > [box elist cols=64 rows=16][(source log.{p})]
> > [box]
> > [submit 'edit']
> > [session target log.{p}]
> > [session edit '{=elist}']
> > [session nextpage {p}&action={action}]
> > [form]
> > [if]
> > --------------------------------------------------------------------------------------------
>
> > Which works great for the superuser, but normal users click the
> > subscribe button, and nothing happens. The form is submitted, and
> > quietly ignores the log command. Neither subscribing nor unsubscribing
> > works.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to