1
0
mirror of https://github.com/linkedin/oncall.git synced 2025-11-30 23:44:59 +02:00

Disable create event modal if user is not part of team

This commit is contained in:
sebrahim
2017-06-15 17:01:29 +09:00
committed by Qingping Hou
parent b20d0d2470
commit c5175bd027

View File

@@ -920,7 +920,7 @@ var oncall = {
self.data.$calendar.find('[data-id="' + evtId + '"]').attr('data-modal-open', false);
},
user: oncall.data.user,
readOnly: oncall.data.user ? false : true,
readOnly: oncall.data.user && Object.keys(self.data.teamData.users).indexOf(oncall.data.user) !== -1 ? false : true,
timezone: oncall.data.userTimezone,
team: self.data.teamName,
roles: oncall.data.roles