I have a web site which allows users to logon to a control panel that allows users to change content of the web site.

When creating the users you can set the account type: (PHP)

i.e. `UserAccount::get_accounttype() == 1` full access

and `UserAccount::get_accounttype() == 0` part access

I have stopped access to certain pages by using a redirect as follows:

```
if (UserAccount::get_accounttype() == 0 {
    header("Locaction: webpage.php");
}

```

However on certain pages I am wanting to hide certain buttons so that users with `UserAccount::get_accounttype() == 0` can't use or see them.

I am just wondering what the best way to achieve this would be?

I know I can hide buttons in jQuery using `$('target').hide();` but how would I do this from a PHP function?