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 ...:),
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
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,
(: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
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