Added function to check if user has post rights