Access denied to anonymous users

Created on 19 October 2023, about 1 year ago

Problem/Motivation

Anonymous users can access all the node data, I think we need to Set anonymous permission to access denied and they can't access the node data.

Steps to reproduce

Create a permission.yml file and put this code in it.

administer filter by type settings:
  title: 'Administer Filter by type settings'
  description: 'Access and manage the settings for filter by type Module.'
  restrict access: true

In your .module file put this code.

function filter_by_type_permission() {
  return [
    'administer filter by type settings' => [
      'title' => t('Administer filter by type settings'),
      'description' => t('Access and manage the settings for filter by type Module.'),
    ],
  ];
}

And set permission in the routing.yml file.
_permission: 'administer filter by type'

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India Prachi6824

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024