(self, cmd)
| 111 | |
| 112 | # Has permission to run the command |
| 113 | def hasCmdPermission(self, cmd): |
| 114 | flags = flag.db.get(self.getCmdFuncName(cmd), ()) |
| 115 | if "admin" in flags and "ADMIN" not in self.permissions: |
| 116 | return False |
| 117 | else: |
| 118 | return True |
| 119 | |
| 120 | # Has permission to access a site |
| 121 | def hasSitePermission(self, address, cmd=None): |
no test coverage detected