Have the right to do something

To have the freedom to do something.

The apartment manager does not have the right to tell the tenants when they must leave the building.