jerqi commented on code in PR #9384:
URL: https://github.com/apache/gravitino/pull/9384#discussion_r2591675526
##########
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:
After thinking twice, we should return legacy privileges here. Otherwise, it
will break compatibility.
If user used the code like
```
CreateModel privilege = Privileges.allow("CREATE_MODEL");
```
--
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]