If the currently connected user is an administrator. .. note:: If users have not been pulled, they will attempt to be pulled upon calling this. :return: True if the user is an administrator
(self)
| 185 | |
| 186 | @property |
| 187 | def is_admin(self) -> bool: |
| 188 | """ |
| 189 | If the currently connected user is an administrator. |
| 190 | |
| 191 | .. note:: If users have not been pulled, they will attempt to be pulled upon calling this. |
| 192 | |
| 193 | :return: True if the user is an administrator |
| 194 | """ |
| 195 | |
| 196 | # This is the test by which the api knows it is an admin |
| 197 | if not self.has_pulled_users: |
| 198 | self.pull_users() |
| 199 | |
| 200 | return core.BNRemoteIsAdmin(self._handle) |
| 201 | |
| 202 | @property |
| 203 | def is_enterprise(self) -> bool: |
nothing calls this directly
no test coverage detected