Skip to content

Commit

Permalink
- Fix wrong imports
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Apr 6, 2022
1 parent 99dbabe commit b5b97a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -18,7 +18,7 @@
#########################################################################

from django.core.management.base import BaseCommand
from geonode.security.utils import sync_resources_with_guardian
from geonode.geoserver.security import sync_resources_with_guardian


class Command(BaseCommand):
Expand Down
2 changes: 1 addition & 1 deletion geonode/security/tasks.py
Expand Up @@ -19,7 +19,7 @@
from django.conf import settings
from celery import shared_task

from .utils import sync_resources_with_guardian
from geonode.geoserver.security import sync_resources_with_guardian


@shared_task(
Expand Down
2 changes: 1 addition & 1 deletion geonode/security/views.py
Expand Up @@ -285,7 +285,7 @@ def resource_geolimits(request, resource_id):

@require_POST
def invalidate_permissions_cache(request):
from .utils import sync_resources_with_guardian
from geonode.geoserver.security import sync_resources_with_guardian
uuid = request.POST['uuid']
resource = get_object_or_404(ResourceBase, uuid=uuid)
can_change_permissions = request.user.has_perm(
Expand Down

0 comments on commit b5b97a7

Please sign in to comment.