Skip to main content
Bumped by Community user
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Tweeted twitter.com/#!/StackDrupal/status/441386741317255168
added 126 characters in body; edited tags
Source Link
Pog Le Pog
  • 137
  • 1
  • 10

I wantI'm trying to make multiple access denied pages and show the relevant one based on the page attempted to view.

Use case:

User is limited to only one "CV" node. If they try to create another, they get an access denied page. I want to display a custom page that says something like, "You can only create one CV". A different access denied page, resulting from a different url, would display a different message.

Is this possible? The only custom access denied solutions I've found seem to create a single page for all access denied notifications.

Cheers, Oliver

I want to make multiple access denied pages and show the relevant one based on the page attempted to view.

Use case:

User is limited to only one "CV" node. If they try to create another, they get an access denied page. I want to display a custom page that says something like, "You can only create one CV".

Is this possible? The only custom access denied solutions I've found create a single page.

Cheers, Oliver

I'm trying to make multiple access denied pages and show the relevant one based on the page attempted to view.

Use case:

User is limited to only one "CV" node. If they try to create another, they get an access denied page. I want to display a custom page that says something like, "You can only create one CV". A different access denied page, resulting from a different url, would display a different message.

Is this possible? The only solutions I've found seem to create a single page for all access denied notifications.

Cheers, Oliver

Source Link
Pog Le Pog
  • 137
  • 1
  • 10

How to have various 'access denied' pages depending on URL

I want to make multiple access denied pages and show the relevant one based on the page attempted to view.

Use case:

User is limited to only one "CV" node. If they try to create another, they get an access denied page. I want to display a custom page that says something like, "You can only create one CV".

Is this possible? The only custom access denied solutions I've found create a single page.

Cheers, Oliver