Admin Restricted Code Question

edited January 2010 in Vanilla 2.0 - 2.8
How would I code something so its restricted to admins, It just to restrict some links from the members, kinda like how members dont see the Settings panel.

Example of Something Similiar:
if ($userrole == admin){
...
}
Sign In or Register to comment.