Skip to content
Snippets Groups Projects
Commit ae10a2b5 authored by Sybille Peters's avatar Sybille Peters Committed by Tymoteusz Motylewski
Browse files

[FEATURE] Show broken links only in editable fields

Linkvalidator should show broken links only in the list of broken links,
if current backend user has edit access to the field. This way
the editor will no longer get an error message on trying to
edit records he has no permission to edit.

Whether the editor has access depends on a number of factors.

We check the following:

* The current permissions of the page. For editing the page, the editor
  must have Permission::PAGE_EDIT, for editing content
  Permission::CONTENT_EDIT must be available
* The user has write access to the table. We check if the table
  is in 'tables_modify' for the group(s)
* The user has write access to the field. We check if the field
  is an exclude field. If yes, it must be included in
  'non_exclude_fields' for the group(s).
* The user has write permission for the language of the record
* For all tables with type fields: The type is in list of explicitly
  allowed values for authMode (or not explicitly denied depending on
  the setting).

Resolves: #84214
Releases: master
Change-Id: Iade53d0452e0a5dec98e9d5b7b149d137f170949
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61786


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarSybille Peters <sypets@gmx.de>
Tested-by: default avatarTymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarSybille Peters <sypets@gmx.de>
Reviewed-by: default avatarTymoteusz Motylewski <t.motylewski@gmail.com>
parent a8b8b7a4
Branches
Tags
No related merge requests found
Showing
with 1429 additions and 26 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment