mirror of
https://github.com/maubot/maubot
synced 2025-08-29 19:00:39 +00:00
Add config option to disable parts of management API
This commit is contained in:
parent
147081c0db
commit
75b5ac8ebd
17 changed files with 287 additions and 149 deletions
|
@ -77,7 +77,8 @@ class PluginInstance:
|
|||
"started": self.started,
|
||||
"primary_user": self.primary_user,
|
||||
"config": self.db_instance.config,
|
||||
"database": self.inst_db is not None,
|
||||
"database": (self.inst_db is not None
|
||||
and self.mb_config["api_features.instance_database"]),
|
||||
}
|
||||
|
||||
def get_db_tables(self) -> Dict[str, sql.Table]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue