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): private permissions shouldn't affect the check #5116

Merged
merged 1 commit into from
May 8, 2024

Conversation

jrainville
Copy link
Member

Fixes status-im/status-desktop#14608

The permission check was incorrectly deleting the response to a permission that was private.

What this caused is that the permission check was completely ignored, which meant that the channel would be open to everyone.

@ajayesivan I saw that you were the one that added those lines. The way we hide the permissions is on the UI side for Desktop.
Otherwise, you can try to do it on the status-go side, but it would need to be only when passing the community to the front-end, though that's a bit harder.
Either way, doing it during the CheckPermissions is not the right way, since it makes it so that we completely ignore the permission.

@jrainville jrainville changed the title fix(permisisons): private permisisons shouldn't affect the check fix(permissions): private permissions shouldn't affect the check May 6, 2024
@status-im-auto
Copy link
Member

status-im-auto commented May 6, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ e906b4e #1 2024-05-06 21:02:52 ~1 min tests 📄log
✔️ e906b4e #1 2024-05-06 21:07:17 ~3 min linux 📦zip
✔️ e906b4e #1 2024-05-06 22:26:44 ~5 min ios 📦zip
✔️ e906b4e #1 2024-05-06 22:59:03 ~5 min android 📦aar
✔️ efea842 #2 2024-05-08 17:37:31 ~2 min linux 📦zip
✔️ efea842 #2 2024-05-08 17:37:33 ~2 min android 📦aar
✔️ efea842 #2 2024-05-08 17:38:27 ~3 min ios 📦zip
✔️ efea842 #2 2024-05-08 18:18:01 ~43 min tests 📄log

Copy link
Contributor

@ajayesivan ajayesivan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. We will handle the hiding private permissions part in the frontend.

@jrainville jrainville force-pushed the fix/hide-permission-disables-the-perm branch from e906b4e to efea842 Compare May 8, 2024 17:34
@jrainville jrainville merged commit db0cc10 into develop May 8, 2024
7 checks passed
@jrainville jrainville deleted the fix/hide-permission-disables-the-perm branch May 8, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hideIfPermissionsNotMet flag is always false and hidden channels are visible
4 participants