Fix publish action status according to user privileges.