sarankk commented on code in PR #165:
URL: https://github.com/apache/cassandra-sidecar/pull/165#discussion_r1901287435


##########
server/src/main/java/org/apache/cassandra/sidecar/routes/restore/UpdateRestoreJobHandler.java:
##########
@@ -66,6 +75,17 @@ public UpdateRestoreJobHandler(ExecutorPools executorPools,
         this.metrics = metrics.server().restore();
     }
 
+    @Override
+    public Set<Authorization> requiredAuthorizations()
+    {
+        String resource = 
VariableAwareResource.DATA_WITH_KEYSPACE_TABLE.resource();
+        Authorization createRestore = 
SidecarActions.CREATE_RESTORE.toAuthorization(resource);
+        Authorization updateRestore = 
SidecarActions.UPDATE_RESTORE.toAuthorization(resource);
+        OrAuthorization createOrUpdate
+        = new 
OrAuthorizationImpl().addAuthorization(createRestore).addAuthorization(updateRestore);

Review Comment:
   Removed create restore from it. 



-- 
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: pr-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to