Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a published check, removed comments, and rearranged the code. #4

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from

Conversation

sarongebre
Copy link
Contributor

@sarongebre sarongebre commented Nov 6, 2024

Closes #2

To remove the row in node_access that grants view access to all nodes (usually added by default or a module), we can run:

vendor/bin/drush php-eval 'node_access_rebuild();'

Or, manually running this SQL command:

DELETE FROM tabe_name.node_access WHERE (nid = '0') and (gid = '0') and (realm = 'all') and (langcode = '');`

`

This takes away the global view grant, meaning nodes won’t be viewable to anonymous users by default unless node_access_rebuild() is run again, which will trigger the unl_access_node_access_records table.

@sarongebre sarongebre self-assigned this Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade UNL Access Module from Drupal 7 to Drupal 10
1 participant