Adding logic to hide options from people without author or editor permissions