* _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)
| 14 | * @return {boolean} - returns true if policy contains not implemented elements |
| 15 | */ |
| 16 | function _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 |