Issue #2971619 by idebr, drunken monkey: Refactored the access check for the "Execute pending tasks" local action.