-
Notifications
You must be signed in to change notification settings - Fork 25
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(Backend): use object over loose array for permissions #1173
Conversation
lib/Db/Table.php
Outdated
@@ -101,10 +102,9 @@ public function jsonSerialize(): array { | |||
} | |||
|
|||
/** | |||
* @psalm-suppress MismatchingDocblockReturnType | |||
* @return array{read: bool, create: bool, update: bool, delete: bool, manage: bool}|null | |||
* @return ?Permissions |
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.
No need as we have the type hint already.
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.
and removed 2, 3 others of the same
Solves issues with undefined array keys, but is said to be more performent but also more clear when coding. Signed-off-by: Arthur Schiwon <[email protected]>
8079446
to
8086f01
Compare
/backport to stable0.7 |
The backport to # Switch to the target branch and update it
git checkout stable0.7
git pull origin stable0.7
# Create the new backport branch
git checkout -b backport/1173/stable0.7
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 8086f019
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/1173/stable0.7 Error: No changes found in backport branch Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
/backport to stable0.7 |
The backport to # Switch to the target branch and update it
git checkout stable0.7
git pull origin stable0.7
# Create the new backport branch
git checkout -b backport/1173/stable0.7
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 8086f019
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/1173/stable0.7 Error: No changes found in backport branch Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
ok, backport does not work without pulling down more things from main. |
Solves issues with undefined array keys, but is said to be more performant but also more clear when coding.
fixes #1131