Skip to content

Commit

Permalink
fix: realign changes with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Oct 6, 2024
1 parent 2887b01 commit 16c4573
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 793 deletions.
10 changes: 2 additions & 8 deletions arches/app/permissions/arches_permission_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import guardian.shortcuts as gsc

import inspect
from arches.app.models.models import Node, NodeGroup, TileModel
from arches.app.models.models import Node, NodeGroup, TileModel, Plugin
from django.db.models import Q
from arches.app.models.system_settings import settings
from arches.app.models.models import ResourceInstance, MapLayer
Expand Down Expand Up @@ -317,13 +317,7 @@ def user_has_plugin_permissions(self, user: User, plugin: Plugin | uuid.UUID | s
perms = (perms,)
return all(user.has_perm(perm, plugin_obj) for perm in perms)

def user_has_resource_model_permissions(
self,
user: User,
perms: str | Iterable[str],
resource: ResourceInstance | None = None,
graph_id: str | None = None,
) -> bool:
def user_has_resource_model_permissions(self, user: User, perms: str | Iterable[str], resource: ResourceInstance | None=None, graph_id: str | None=None) -> bool:
"""
Checks if a user has any explicit permissions to a model's nodegroups
Expand Down
Loading

0 comments on commit 16c4573

Please sign in to comment.