Issue #2061987 by InternetDevels: Replace user_access() calls with ->hasPermission() in field module.