hide permission tab when empty

I did it from php by moving the permission code above the tab
small fix for selects - on some browsers the text was cropped by 1px
Merge pull request #297 from Cipa/develop

hide permission tab when empty