confirm_if_needed: Check if Permission Confirmation is Needed
Description
Helper function that determines whether to prompt the user for permission
confirmation based on the confirmed parameter.
Usage
confirm_if_needed(confirmed)
Value
Logical indicating if permission is granted
Arguments
- confirmed
Logical indicating if permission is pre-confirmed