File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,13 @@ class Permissions:
261
261
)
262
262
263
263
NOTIFICATIONS_READ = LegacyAccessControlCompatiblePermission (
264
- Resources .NOTIFICATIONS , Actions .READ , LegacyAccessControlRole .EDITOR
264
+ Resources .NOTIFICATIONS ,
265
+ Actions .READ ,
266
+ (
267
+ LegacyAccessControlRole .VIEWER
268
+ if settings .FEATURE_ALLOW_VIEWERS_ON_CALL
269
+ else LegacyAccessControlRole .EDITOR
270
+ ),
265
271
)
266
272
267
273
NOTIFICATION_SETTINGS_READ = LegacyAccessControlCompatiblePermission (
Original file line number Diff line number Diff line change 77
77
FEATURE_NOTIFICATION_BUNDLE_ENABLED = getenv_boolean ("FEATURE_NOTIFICATION_BUNDLE_ENABLED" , default = True )
78
78
FEATURE_DECLARE_INCIDENT_STEP_ENABLED = getenv_boolean ("FEATURE_DECLARE_INCIDENT_STEP_ENABLED" , default = False )
79
79
FEATURE_SERVICE_DEPENDENCIES_ENABLED = getenv_boolean ("FEATURE_SERVICE_DEPENDENCIES_ENABLED" , default = False )
80
+ # Allow users with legacy role VIEWER to be on call
81
+ FEATURE_ALLOW_VIEWERS_ON_CALL = getenv_boolean ("FEATURE_ALLOW_VIEWERS_ON_CALL" , default = False )
82
+
80
83
81
84
TWILIO_API_KEY_SID = os .environ .get ("TWILIO_API_KEY_SID" )
82
85
TWILIO_API_KEY_SECRET = os .environ .get ("TWILIO_API_KEY_SECRET" )
You can’t perform that action at this time.
0 commit comments