[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:TYPO3com <noreply@typo3.com> Tested-by:
Susanne Moog <look@susi.dev> Tested-by:
Sybille Peters <sypets@gmx.de> Tested-by:
Tymoteusz Motylewski <t.motylewski@gmail.com> Reviewed-by:
Susanne Moog <look@susi.dev> Reviewed-by:
Sybille Peters <sypets@gmx.de> Reviewed-by:
Tymoteusz Motylewski <t.motylewski@gmail.com>
Showing
- typo3/sysext/core/Documentation/Changelog/master/Feature-84214-AddCheckIfFieldsAreEditableForLinkvalidator.rst 42 additions, 0 deletions...ure-84214-AddCheckIfFieldsAreEditableForLinkvalidator.rst
- typo3/sysext/linkvalidator/Classes/LinkAnalyzer.php 17 additions, 7 deletionstypo3/sysext/linkvalidator/Classes/LinkAnalyzer.php
- typo3/sysext/linkvalidator/Classes/Linktype/InternalLinktype.php 2 additions, 2 deletions...ysext/linkvalidator/Classes/Linktype/InternalLinktype.php
- typo3/sysext/linkvalidator/Classes/QueryRestrictions/EditableRestriction.php 231 additions, 0 deletions...lidator/Classes/QueryRestrictions/EditableRestriction.php
- typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php 14 additions, 5 deletions...sext/linkvalidator/Classes/Report/LinkValidatorReport.php
- typo3/sysext/linkvalidator/Classes/Repository/BrokenLinkRepository.php 37 additions, 9 deletions...linkvalidator/Classes/Repository/BrokenLinkRepository.php
- typo3/sysext/linkvalidator/Classes/Task/ValidatorTask.php 8 additions, 3 deletionstypo3/sysext/linkvalidator/Classes/Task/ValidatorTask.php
- typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php 723 additions, 0 deletions.../Tests/Functional/Repository/BrokenLinkRepositoryTest.php
- typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/be_groups.xml 35 additions, 0 deletions...idator/Tests/Functional/Repository/Fixtures/be_groups.xml
- typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/be_users.xml 75 additions, 0 deletions...lidator/Tests/Functional/Repository/Fixtures/be_users.xml
- typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input.xml 36 additions, 0 deletions...kvalidator/Tests/Functional/Repository/Fixtures/input.xml
- typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_group.xml 35 additions, 0 deletions...unctional/Repository/Fixtures/input_permissions_group.xml
- typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_2.xml 35 additions, 0 deletions...nctional/Repository/Fixtures/input_permissions_user_2.xml
- typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_3.xml 41 additions, 0 deletions...nctional/Repository/Fixtures/input_permissions_user_3.xml
- typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_4.xml 41 additions, 0 deletions...nctional/Repository/Fixtures/input_permissions_user_4.xml
- typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_5.xml 29 additions, 0 deletions...nctional/Repository/Fixtures/input_permissions_user_5.xml
- typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_permissions_user_6_explicit_allow.xml 26 additions, 0 deletions...tory/Fixtures/input_permissions_user_6_explicit_allow.xml
- typo3/sysext/linkvalidator/ext_tables.sql 2 additions, 0 deletionstypo3/sysext/linkvalidator/ext_tables.sql
Please register or sign in to comment