-
Notifications
You must be signed in to change notification settings - Fork 79
Add $lib.auth.easyperm and $user.vars (SYN-5278) #3167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #3167 +/- ##
==========================================
- Coverage 97.31% 97.22% -0.10%
==========================================
Files 223 224 +1
Lines 44469 44547 +78
==========================================
+ Hits 43277 43311 +34
- Misses 1192 1236 +44
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
… into lib-easyperm
synapse/lib/cell.py
Outdated
@@ -2228,6 +2228,22 @@ async def popUserProfInfo(self, iden, name, default=None): | |||
user = await self.auth.reqUser(iden) | |||
return await user.profile.pop(name, default=default) | |||
|
|||
async def getUserVars(self, iden): | |||
user = await self.auth.reqUser(iden) | |||
return user.vars.pack() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we maybe want to make this a tuple yielder to account for eventually not having them in the hive and potential user var growth?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to iterUserVars
No description provided.