fixed post button after checking permissions