Closed (outdated)
Project:
Account Profile
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2011 at 15:16 UTC
Updated:
14 Jun 2018 at 14:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cis.drupal commentedComment #2
cis.drupal commentedComment #3
cis.drupal commentedComment #4
kenorb commentedComment #5
seanbI just created a patch to check wich roles the current user has. It checks if the user has the prefered profile role, or else use the first role it can find. If the user don't have any extra roles (for example user 1 in my case), there is no redirect.
A patch is attached, I hope it helps.
Regards,
Sean
Comment #6
seanbThe previous post can be ignored. As a collegue pointed out, this only works if the content type names are equal to the role names. I created a new patch. This time we check wich content profiles a user has access to. if it's only 1 content type, redirect the user. If a user has more content profiles, we use the default profile.
Regards,
Sean
Comment #7
delykj commentedsubscribe
Comment #8
kenorb commentedClosing as per Drupal 6 end-of-life. Unless somebody can provide a clean, tested patch.