-
Notifications
You must be signed in to change notification settings - Fork 752
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
user grant privileges #2797
user grant privileges #2797
Conversation
Thanks for the contribution! Please review the labels and make any necessary changes. |
6b16910
to
48da86d
Compare
Codecov Report
@@ Coverage Diff @@
## main #2797 +/- ##
======================================
Coverage 69% 69%
======================================
Files 597 603 +6
Lines 32242 32531 +289
======================================
+ Hits 22312 22583 +271
- Misses 9930 9948 +18
Continue to review full report at Codecov.
|
7b0c513
to
8ed2282
Compare
self.privileges.contains(privilege) | ||
} | ||
|
||
pub fn set_all_privileges(&mut self) { | ||
self.privileges |= ALL_PRIVILEGES; | ||
} | ||
} | ||
|
||
impl ops::BitOr for UserPrivilege { |
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.
👍
/lgtm Neat and powerful test, thank you @junnplus |
I hereby agree to the terms of the CLA available at: https://databend.rs/policies/cla/
Summary
Summary about this PR
Changelog
Related Issues
Fixes #issue
Test Plan
Unit Tests
Stateless Tests