MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: (no subject)



On 16 Nov, Tamas Kuhegyi wrote:
> ******    message to minivend-users from "Tamas Kuhegyi" <tkohegyi@gw.cdk.bme.hu>     ******
> 
> Hi,
> 
> I have got a variable at the catalog.cfg
> 
> Variable    ADMINUSER       Myname
> 
> And I would like to use it in the following condition:
> 
> [if type=value term=__ADMINUSER__ op="=~" compare="/[data session
> username]/"]
> [then] Admin detected![/then]
> [else]  Admin not detected![/else]
> [/if]
> 
> I mean, when the logged_in user is the ADMINUSER, write Admin detected, If
> not then write Admin not detected.
> It is simple, but not works. It is always Admin not detected. What could be
> the reason? (Minivend 3.14-3)
> 
> Or is there a simplier way to do it?
> 
> Thanks,
> Tamas

Maybe this can help you! I am not sure!
Make an empty file .access (".access") in your directory.
Make a file .access_gate and place this into the same directory. This
file has some lines for example:

mysuperuserpagename1: [if session username eq '__MVC_SUPERUSER__']Yes[else]No[/else][/if]
mysuperuserpagename1: [if session username eq '__MVC_SUPERUSER__']Yes[else]No[/else][/if]
*: 0

"*: 0" disallow all user to access any page from this directory! Look
into the directory "reconfig".

Regards

Joachim

-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1971449
45886 Gelsenkirchen         FAX: 0209 1671449



Search for: Match: Format: Sort by: