def get_readonly_fields(self, request, obj=None):
        readonly_fields = list(self.readonly_fields)[:]
        if request.user.isReadOnlyUser():
            for field in self.fields:
                if not field in readonly_fields:
                    readonly_fields.append(field)
        return readonly_fields
dataset/ETHPy150Open open-cloud/xos/xos/core/admin.py/PlStackGenericTabularInline.get_readonly_fields/original