MCPcopy Index your code
hub / github.com/scality/cloudserver / _checkNotImplementedPolicy

Function _checkNotImplementedPolicy

lib/api/bucketPutPolicy.js:16–21  ·  view source on GitHub ↗

* _checkNotImplementedPolicy - some bucket policy features have not been * implemented and should return NotImplemented error * @param {string} policyString - string bucket policy * @return {boolean} - returns true if policy contains not implemented elements

(policyString)

Source from the content-addressed store, hash-verified

14 * @return {boolean} - returns true if policy contains not implemented elements
15 */
16function _checkNotImplementedPolicy(policyString) {
17 // bucket names and key names cannot include "", so including those
18 // isolates not implemented keys
19 return policyString.includes('"Service"')
20 || policyString.includes('"Federated"');
21}
22
23/**
24 * bucketPutPolicy - create or update a bucket policy

Callers 1

bucketPutPolicyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected