Issue #1966334 by Alan Evans, fubhy, dawehner, ParisLiakos: Convert user_access() to User::hasPermission().