Check permissions properly before displaying any UI elements