8000 Revert back to reservations_url · rbachman/twilio-python@8e7c696 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e7c696

Browse files
committed
Revert back to reservations_url
1 parent 32444e8 commit 8e7c696

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

twilio/task_router/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,13 @@ def __init__(self, account_sid, auth_token, workspace_sid, worker_sid):
228228
worker_sid)
229229

230230
self.activity_url < 8000 span class=pl-c1>= self.base_url + "/Activities"
231-
self.tasks_url = self.base_url + "/Tasks/**"
231+
self.reservations_url = self.base_url + "/Tasks/**"
232232
self.worker_reservations_url = self.resource_url + "/Reservations/**"
233233

234234
# add permissions to fetch the
235235
# list of activities, tasks, and worker reservations
236236
self.allow(self.activity_url, "GET")
237-
self.allow(self.tasks_url, "GET")
237+
self.allow(self.reservations_url, "GET")
238238
self.allow(self.worker_reservations_url, "GET")
239239

240240
def setup_resource(self):
@@ -249,7 +249,7 @@ def allow_activity_updates(self):
249249

250250
def allow_reservation_updates(self):
251251
self.policies.append(self.make_policy(
252-
self.tasks_url,
252+
self.reservations_url,
253253
'POST',
254254
True))
255255
self.policies.append(self.make_policy(

0 commit comments

Comments
 (0)
0