Skip to content

Wrong permission checked in pageadmin to get_inline_instances #8261

@dwintergruen

Description

@dwintergruen

see:

def get_inline_instances(self, request, obj=None):

here it says:

def get_inline_instances(self, request, obj=None): if obj and get_cms_setting("PERMISSION"): can_change_perms = self.has_change_permissions_permission(request, obj=obj) else: can_change_perms = False

which doesn't make much sense for me, it should be:

def get_inline_instances(self, request, obj=None): if obj and get_cms_setting("PERMISSION"): can_change_perms = self.has_change_permission(request, obj=obj) else: can_change_perms = False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions