jerryshao commented on code in PR #9384:
URL: https://github.com/apache/gravitino/pull/9384#discussion_r2591649071
##########
api/src/main/java/org/apache/gravitino/authorization/Privileges.java:
##########
@@ -127,10 +127,14 @@ public static Privilege allow(Privilege.Name name) {
return ManageGrants.allow();
// Model
+ case REGISTER_MODEL:
+ return RegisterModel.allow();
case CREATE_MODEL:
- return CreateModel.allow();
+ return RegisterModel.allow();
Review Comment:
You can simplify as:
```
case REGISTER_MODEL:
case CREATE_MODEL:
return xxxx;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]