예제 #1
0
파일: DataSites.py 프로젝트: ticoann/sitedb
 def _authz(self, sites):
   """Run late authorisation, remapping site names to canonical ones."""
   remap = {}
   for site in sites:
     oldsite_authz_match(self.api, remap,
                         role=["Global Admin", "Site Executive"],
                         group=["global"], site=[site])
예제 #2
0
 def _authz(self, sites):
     """Run late authorisation, remapping site names to canonical ones."""
     remap = {}
     for site in sites:
         oldsite_authz_match(self.api,
                             remap,
                             role=["Global Admin", "Site Executive"],
                             group=["global"],
                             site=[site])