Issue #2174947 by dstol: hook_permission function needs to be renamed