Fix `sync-perm` to work correctly when update_fab_perms = False (#14847)
Fix `sync-perm` to work correctly when update_fab_perms = False (#14847)

If Airflow is configured with update_fab_perms config setting to False,
then the Op, User and Viewer roles are created _before_ the permissions
objects are written to the database, meaning that these roles did not
correctly get assigned all the permissions we asked for (the missing
permissions are just silently not created.)

Because of the "migrate to resource permission" migration this problem
is not "disasterous" as all most of the Permissions et al. we use are
created by a migration.

This changes it so that the permissions are always created/synced before
we look at the roles.

(Re-running sync-perm wouldn't fix this, as although the second time
around the Permissions will exist in the DB, we see that Op role already
has permissions and don't make any changes, assuming that the site
operators made such changes.)
lyft/incubator-airflow,bolkedebruin/airflow,sekikn/incubator-airflow,nathanielvarona/airflow,bolkedebruin/airflow,apache/airflow,mistercrunch/airflow,danielvdende/incubator-airflow,dhuang/incubator-airflow,apache/airflow,nathanielvarona/airflow,sekikn/incubator-airflow,cfei18/incubator-airflow,bolkedebruin/airflow,sekikn/incubator-airflow,Acehaidrey/incubator-airflow,mistercrunch/airflow,lyft/incubator-airflow,apache/incubator-airflow,nathanielvarona/airflow,danielvdende/incubator-airflow,apache/incubator-airflow,danielvdende/incubator-airflow,apache/airflow,mistercrunch/airflow,nathanielvarona/airflow,Acehaidrey/incubator-airflow,lyft/incubator-airflow,apache/incubator-airflow,dhuang/incubator-airflow,apache/airflow,cfei18/incubator-airflow,dhuang/incubator-airflow,apache/incubator-airflow,danielvdende/incubator-airflow,Acehaidrey/incubator-airflow,nathanielvarona/airflow,dhuang/incubator-airflow,danielvdende/incubator-airflow,bolkedebruin/airflow,cfei18/incubator-airflow,mistercrunch/airflow,apache/airflow,cfei18/incubator-airflow,nathanielvarona/airflow,Acehaidrey/incubator-airflow,danielvdende/incubator-airflow,sekikn/incubator-airflow,Acehaidrey/incubator-airflow,bolkedebruin/airflow,lyft/incubator-airflow,apache/airflow,cfei18/incubator-airflow,Acehaidrey/incubator-airflow,cfei18/incubator-airflow