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

BOX-227: Add actual edit-permissions check #85

Merged
merged 2 commits into from
Oct 31, 2021

Conversation

azinit
Copy link
Contributor

@azinit azinit commented Oct 30, 2021

CHANGELOG

  • Добавил фактическую проверку на редактирование карточки
0D085z4CSq.mp4

Copy link
Contributor Author

@azinit azinit left a comment

Choose a reason for hiding this comment

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

self-reviewed

Comment on lines +45 to +51
const isAnotherViewing = guard({
source: cardCtxLoaded,
filter: ({ viewer, card }) => {
if (!viewer) return false;
return viewer.id !== card.answer.card.authorId;
},
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Как обсудили с @sergeysova и @dmi-ch - лучше обрабатывать так "налету", чем доставать из стора

В том числе во избежании гонки данных

@azinit azinit changed the title BOX-227: Add actual permissions check BOX-227: Add actual edit-permissions check Oct 30, 2021
@azinit azinit marked this pull request as draft October 31, 2021 03:58
@azinit azinit marked this pull request as ready for review October 31, 2021 06:54
@azinit azinit requested a review from sergeysova October 31, 2021 06:55
@azinit
Copy link
Contributor Author

azinit commented Oct 31, 2021

@sergeysova ping

@azinit azinit merged commit 7b24423 into master Oct 31, 2021
@azinit azinit deleted the feature/box-227-edit-permissions-check branch October 31, 2021 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants