diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2021-10-15 14:14:46 -0400 |
---|---|---|
committer | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2021-10-15 14:20:02 -0400 |
commit | 35b9f39178cc502a5283a1b37a65f7dd0838ae05 (patch) | |
tree | 676ede483e2aa6a0ad8ebaef0c0300a155a22023 /src/workflow | |
parent | b3ed8ebcf536c021330e7ccbc0376f6b89189348 (diff) |
Merge User Booking API Rev 1 (Try 3)
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Change-Id: Ie1eee0a59929f8da39f16bb6bc17ae3de4f1cba9
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'src/workflow')
-rw-r--r-- | src/workflow/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/workflow/models.py b/src/workflow/models.py index f550a38..91a216c 100644 --- a/src/workflow/models.py +++ b/src/workflow/models.py @@ -160,7 +160,7 @@ class BookingAuthManager(): return True # admin override for this user if Booking.objects.filter(owner=booking.owner, end__gt=timezone.now()).count() >= 3: return False - if len(booking.resource.template.getResources()) < 2: + if len(booking.resource.template.get_required_resources()) < 2: return True # if they only have one server, we dont care if repo.BOOKING_INFO_FILE not in repo.el: return False # INFO file not provided |