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

Method isLocked

lib/api/apiUtils/object/objectLockHelpers.js:156–166  ·  view source on GitHub ↗

* ObjectLockInfo.isLocked * @returns {bool} - Whether the retention policy is active and protecting the object

()

Source from the content-addressed store, hash-verified

154 * @returns {bool} - Whether the retention policy is active and protecting the object
155 */
156 isLocked() {
157 if (this.legalHold) {
158 return true;
159 }
160
161 if (!this.mode || !this.date) {
162 return false;
163 }
164
165 return !this.isExpired();
166 }
167
168 /**
169 * ObjectLockInfo.isGovernanceMode

Callers 3

canModifyObjectMethod · 0.95
canModifyPolicyMethod · 0.95

Calls 1

isExpiredMethod · 0.95

Tested by

no test coverage detected