Added publish method for posts and more restrictions for non-admin users