Forum OpenACS Q&A: Re: How do I know, if someone is Admin?

Collapse
Posted by Tim Adler on
Great, that did it. It is working! But I don't quite understand what the code does, or what part is doing which task? Can you perhaps explain the code a little bit?
ad_page_contract {
} {
} -properties {
   admin_p:onevalue
}

set package_id [ad_conn package_id]
set admin_p [ad_permission_p $package_id admin]