File tree 2 files changed +9
-1
lines changed
2 files changed +9
-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 76
76
FEATURE_ALERT_GROUP_SEARCH_CUTOFF_DAYS = getenv_integer ("FEATURE_ALERT_GROUP_SEARCH_CUTOFF_DAYS" , default = None )
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
+ # Allow users with legacy role VIEWER to be on call
80
+ FEATURE_ALLOW_VIEWERS_ON_CALL = getenv_boolean ("FEATURE_ALLOW_VIEWERS_ON_CALL" , default = False )
79
81
80
82
TWILIO_API_KEY_SID = os .environ .get ("TWILIO_API_KEY_SID" )
81
83
TWILIO_API_KEY_SECRET = os .environ .get ("TWILIO_API_KEY_SECRET" )
You can’t perform that action at this time.
0 commit comments