Access denied to anonymous users

Created on 4 October 2023, 9 months ago
Updated 17 October 2023, 9 months 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 node by term settings:
  title: 'Administer node by term settings'
  description: 'Access and manage the settings for node by term Module.'
  restrict access: true

In your .module file put this code.

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

And set permission in the routing.yml file.
_permission: 'administer node by term'

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Harshita mehra

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

Comments & Activities

Production build 0.69.0 2024