upgle commented on a change in pull request #3880: Modify that web action in the bound package can be accessed. URL: https://github.com/apache/incubator-openwhisk/pull/3880#discussion_r206001303
########## File path: core/controller/src/main/scala/whisk/core/controller/WebActions.scala ########## @@ -743,6 +758,16 @@ trait WhiskWebActionsApi extends Directives with ValidateRequestSize with PostAc } } + /** + * Checks if an action is executable. + */ + private def checkEntitlement(identity: Identity, action: WhiskActionMetaData)( + implicit transid: TransactionId): Future[Unit] = { + val resource = + Resource(action.namespace.root.toPath, Collection(Collection.PACKAGES), Some(action.namespace.last.toString)) + entitlementProvider.check(identity, Privilege.READ, resource) Review comment: Thank you for your kind review. I've removed existing entitlementProvider.checkThrottles(), then modified to use only entitlementProvider.check (). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services