Documentation
Returns True if user has this permission (via a role it has).
permission – permission string name
New in version 3.3.0.