(user: AbstractUser)
return user.username == "mod" or is_admin(user)
Determines whether the given user is allowed to control playback.
Determines whether the given user is allowed to control playback.
Determines whether the given user is allowed to control playback .
def has_controls(user: AbstractUser) -> bool:
    """Determines whether the given user is allowed to control playback."""
    return user.username == "mod" or is_admin(user)
def has_controls ( user : AbstractUser ) -> bool : return user . username == "mod" or is_admin ( user )