Disallow does not work (on certain paths)

Lausch - July 28, 2007 - 02:13
Project:Path Access
Version:5.x-1.2
Component:Code
Category:support request
Priority:normal
Assigned:budda
Status:postponed (maintainer needs more info)
Description

hi this module seems not working.

i created a disallowing for

groups/*
groups
group/*
group

nothing works! user will correct role can just visit these pages.

greets

Lausch

#1

hip - January 15, 2008 - 11:01

Same happens to me with
node
node/
node/*

#2

budda - February 9, 2008 - 18:10
Assigned to:Anonymous» budda

Please try the dev build from August 2007 and let me know if this works for you guys.

#3

DanielTheViking - February 10, 2008 - 12:13

Subscribing.

#4

budda - August 15, 2008 - 22:49

Is this still an issue?
Just release 1.2 - let me know if you still experience bad behavior.

#5

lowkeynyc - October 16, 2008 - 18:41

I tired both builds and it doesnt work for me either on Drupal 5.

#6

jooel - November 10, 2008 - 10:43

+1.

This doesn't work for me.

I am trying to restrict access to node/* for anonymous users without success (i only want them to access the alias). The module had no effect.

Restricting "front" worked though.

#7

budda - November 10, 2008 - 10:48

The module takes any paths provided and converts them to their alias. If the alias is not listed, it wont protect visitors from that page.

#8

jooel - November 10, 2008 - 14:50

Ok.

I hacked the "globalredirect" module to accomplish what i needed, i e denying access to node/* and only allow aliases.

( in globalredirect.module change line 103 drupal_goto('$alias', $query_string, NULL, 301); to drupal_goto('', $query_string, NULL, 301); )

#9

DanielTheViking - November 10, 2008 - 18:58
Title:module not work!» Disallow does not work
Version:5.x-1.1» 5.x-1.2

@budda:
Please explain the rationale behind the disallow feature in regards to your comment in #7 here.

If I should guess, you are saying that first one has to create an alias, and only then can you get disallow to work towards that alias.

Does that mean that it only works with aliases you create yourself and which does not take part in existing paths that drupal core or other modules are implementing themselves? That paths such as "node" or "group" is not possible to "disallow"?

If so, I suggest adding such a statement to the readme and the project page, for clarification.

#10

DanielTheViking - November 10, 2008 - 19:01
Title:Disallow does not work» Disallow does not work (on certain paths)
Category:bug report» support request
Priority:critical» normal
Status:active» postponed (maintainer needs more info)

Maybe this is not a bug, but by design?

#11

budda - November 11, 2008 - 09:22

@DanielTheViking The module attemps to convert any path to an alias if available.

$path = drupal_get_path_alias(check_plain($_GET['q']));

If no alias is found, the same path is returned as per the API docs.

So node* would work as a path to restrict.

The pattern matching code used is taken from Drupal cores block.module

 
 

Drupal is a registered trademark of Dries Buytaert.