function vud_can_reset_vote in Vote Up/Down 8
Check if the passed user can reset vote.
Parameters
$account: Entity object of an User
Return value
bool
1 call to vud_can_reset_vote()
- VotingApiController::resetVoteAccess in src/
Controller/ VotingApiController.php - Checks if the currentUser is allowed to reset vote.
File
- ./
vud.module, line 31 - Implements the core voting module on top of Voting API.
Code
function vud_can_reset_vote($account) {
return $account
->hasPermission("reset vote up/down votes");
}