Skip to content
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

fix(permissions): fix view and post permission overwritten by view perm #14237

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/app/modules/main/chat_section/module.nim
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@ proc reevaluateRequiresTokenPermissionToJoin(self: Module) =
let community = self.controller.getMyCommunity()
var joinPermissionsChanged = false
for _, tokenPermission in community.tokenPermissions:
if tokenPermission.`type` == TokenPermissionType.BecomeMember or tokenPermission.`type` == TokenPermissionType.BecomeAdmin or tokenPermission.`type` == TokenPermissionType.BecomeTokenMaster:
if tokenPermission.`type` == TokenPermissionType.BecomeMember or
tokenPermission.`type` == TokenPermissionType.BecomeAdmin or
tokenPermission.`type` == TokenPermissionType.BecomeTokenMaster:
joinPermissionsChanged = true
break
self.view.setRequiresTokenPermissionToJoin(joinPermissionsChanged)
Expand All @@ -413,7 +415,6 @@ method initListOfMyContacts*(self: Module, pubKeys: string) =
method clearListOfMyContacts*(self: Module) =
self.view.listOfMyContacts().clear()


method load*(self: Module) =
self.controller.init()
self.view.load()
Expand Down
2 changes: 1 addition & 1 deletion vendor/status-go