[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Admin detected !
"Tamás Kġhegyi" wrote:
> 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
>
There is an example for this in the demo catalogue "simple" !
If you log in as master, you get "Hi, master". I think you could use this for your problem.
Look at the file "leftside" !
begin:vcard
n:Pahl;Dirk
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:dp@letras.de
note:------
x-mozilla-cpt:;-18272
fn:Dirk Pahl
end:vcard
- References:
- No Subject
- From: "Tamás Kġhegyi" <tkohegyi@gw.cdk.bme.hu>