﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33171	Invalid link for readonly fields in django admin with missing permissions	Ronny Vedrilla	Ronny Vedrilla	"I am using the latest django version (3.2.8) and I have the following problem:

1. My user can see model ""inspection"" via permisson ""view_inspection""
2. My user cannot (!) see any foreign keys due to missing permissions
3. The readonly-foreign key is still rendered as a link which leads to a 403 page

Here is a link to a screenie: https://i.stack.imgur.com/tDsMy.png

What I need:

* Showing just the name of the object and not linking to it.

The problem exists for the regular admin and as well for inlines.

I created repo to reproduce the problem:

https://github.com/GitRon/django_admin_readonly_link_field

I hope I presented as much support as possible. I looked at the code but the request is not even near the method determining if a link or a plain text is to be shown. So I created this ticket.

Best regards
Ronny"	Bug	closed	contrib.admin	5.1	Normal	wontfix			Unreviewed	1	0	0	0	0	0
