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

bug(NoteManager): Fix default edit access not working on notes #1501

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

rexy712
Copy link
Contributor

@rexy712 rexy712 commented Nov 6, 2024

In NoteEdit.vue, the default edit permission for notes was not being handled, making it effectively non-functional, unless your username was 'default' ;). This change makes the NoteManager check for default edit permission as well as per-user.

I also noticed that the hard-coded string was in a few places in the NoteEdit file, so since I was going to add another instance of it, I decided to make it a constant and reuse it in multiple places instead. Hope that's alright to include in this.

@Kruptein
Copy link
Owner

Kruptein commented Nov 8, 2024

I also noticed that the hard-coded string was in a few places in the NoteEdit file, so since I was going to add another instance of it, I decided to make it a constant and reuse it in multiple places instead. Hope that's alright to include in this.

Good call!

unless your username was 'default' ;)

In the long run I should fix this so that it can actually not conflict with a username

@Kruptein Kruptein merged commit f3d3ae9 into Kruptein:dev Nov 8, 2024
5 checks passed
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.

2 participants