mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Add option to bypass percentage-based rollouts
This commit is contained in:
@@ -28,6 +28,8 @@ CollaboratorsHandler = require '../Collaborators/CollaboratorsHandler'
|
||||
module.exports = ProjectController =
|
||||
|
||||
_isInPercentageRollout: (objectId, percentage) ->
|
||||
if Settings.bypassPercentageRollouts = true
|
||||
return true
|
||||
counter = parseInt(objectId.toString().substring(18, 24), 16)
|
||||
return (counter % 100) < percentage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user