Skip to content

Commit

Permalink
notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh16879 committed Sep 11, 2024
1 parent 61f4046 commit 166ba26
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "site/themes/docsy"]
path = site/themes/docsy
url = git@github.com:google/docsy.git
url = https://github.com/google/docsy
3 changes: 1 addition & 2 deletions cvat/apps/iam/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ def get_resource(self):
def check_access(self) -> PermissionResult:
with make_requests_session() as session:
response = session.post(self.url, json=self.payload)
output = response.json()
output = output['result']
output = response.json()['result']

allow = False
reasons = []
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/organizations/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from rest_framework import serializers
from cvat.apps.engine.serializers import BasicUserSerializer
from cvat.apps.iam.utils import get_dummy_user
from .models import *
from .models import Invitation, Membership, Organization

class OrganizationReadSerializer(serializers.ModelSerializer):
owner = BasicUserSerializer(allow_null=True)
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/organizations/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

from rest_framework.routers import DefaultRouter
from .views import *
from .views import InvitationViewSet, MembershipViewSet, OrganizationViewSet

router = DefaultRouter(trailing_slash=False)
router.register('organizations', OrganizationViewSet)
Expand Down
6 changes: 5 additions & 1 deletion cvat/apps/organizations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
from .models import Invitation, Membership, Organization

import traceback
from .serializers import *
from .serializers import (
InvitationReadSerializer, InvitationWriteSerializer,
MembershipReadSerializer, MembershipWriteSerializer,
OrganizationReadSerializer, OrganizationWriteSerializer,
AcceptInvitationReadSerializer)

@extend_schema(tags=['organizations'])
@extend_schema_view(
Expand Down

0 comments on commit 166ba26

Please sign in to comment.