Issue #2062011 by InternetDevels, Albert Volkman: Replace user_access() calls with ->hasPermission() in path module.