Re: [pmwiki-users] Condition Names.

2007-11-07 Thread Stirling Westrup
DaveG wrote: (:if permit ...:) That's actually a really good suggestion, but since, as Pm pointed out, I can just do (:if equal {$Action} ... :), we may as well use (:if action ...:) for the permissions test. I'm assuming that what follows would be an adequate definition for (:if action ...:),

Re: [pmwiki-users] Condition Names.

2007-11-07 Thread Stirling Westrup
Patrick R. Michaud wrote: The normal way to test for the current action is (:if equal {$Action} ... :) For some reason, that had never occurred to me... ___ pmwiki-users mailing list pmwiki-users@pmichaud.com

[pmwiki-users] Condition Names.

2007-11-07 Thread Stirling Westrup
I've just checked, and there is currently no (:if action:) test in the core to see if one has permission to perform a given action. See a recent discussion here with PM about how (:if auth:) doesn't quite do that, as it ignores the $HandleAuth array. It shouldn't be too hard to add such a test,

Re: [pmwiki-users] Condition Names.

2007-11-07 Thread DaveG
(:if permit ...:) Stirling Westrup wrote: I've just checked, and there is currently no (:if action:) test in the core to see if one has permission to perform a given action. See a recent discussion here with PM about how (:if auth:) doesn't quite do that, as it ignores the $HandleAuth

Re: [pmwiki-users] Condition Names.

2007-11-07 Thread Patrick R. Michaud
On Wed, Nov 07, 2007 at 08:23:32PM -0500, Stirling Westrup wrote: I've just checked, and there is currently no (:if action:) test in the core to see if one has permission to perform a given action. See a recent discussion here with PM about how (:if auth:) doesn't quite do that, as it