Reply To: Check if Admin or not

We're upgrading our support forum. Replies are currently closed. Please view our Documentation and FAQ using the menu above.

I’ve found this and it works fine till now, but I’m not 100% sure if I’m doing it right or not

 

<?php if(module_security::get_loggedin_id() ==1) {

// do stuff for admin

}

?>

but what about if I want to check if the user is a customer or not ?
because I just want to make changes on the theme for customers, not for any other users (ex: moderator)

iahmadReply To: Check if Admin or not