Issue #2169249 by h3rj4n, pcambra: Replaced deprecated user_access function.