Closed (fixed)
Project:
Domain
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2009 at 03:10 UTC
Updated:
1 Apr 2010 at 17:13 UTC
Jump to comment: Most recent file
Comments
Comment #1
agentrickardThere is a reason. The intent is that domain assignments should be invisible to non-privileged users. (This was an initial feature request.)
Instead of removing that permission, better to create a new permission that affords the visibility you want to provide. Something like 'view my assigned domains'.
A patch would also need documentation.
Comment #2
nirbhasa commentedAdded 'view my assigned domains' permission, and added documentation in README.txt
Comment #3
agentrickardHm. This brings up a question, though. As implemented 'View my assigned domains' would let a user with access to your profile view your domains. So this either needs to be the perm 'view users domains' (so you can see all users' domains) or the IF needs a check that $user->uid == $account->uid (or user is an admin.)
Comment #4
nirbhasa commentedMy particular usecase merely requires the user to be able to view their domains upon login (mainly to create a good starting point for newbies entering the site for the first time) so the second would suit me best:
But I'm easy either way :) You could create 2 permissions to cover both eventualities, but I'm not sure I see a common use case for the first option. Anyway, let us know what you think and ill do another patch. I also need to create a link for the primary domain.
Comment #5
agentrickardI think I see this as a stand-alone module. We have far too many permissions and configurations in the core module right now.
Comment #6
agentrickardComment #7
nirbhasa commentedSo we did this as a small module (probably too small to get a CVS account for) which is available on our github repo...
Comment #8
agentrickardYou might submit it to the Domain Bonus pack.
http://drupal.org/project/domain_bonus
Comment #9
nirbhasa commentedGreat idea! Created issue there; closing this ticket.