Closed (fixed)
Project:
User Relationships
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2010 at 08:13 UTC
Updated:
27 May 2010 at 18:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirThis setting is not controlled nor added by Privatemsg, it's added by the relationship module you are using. You need to open a feature request there or move this one to the correct issue queue.
I don't know which module you are using so I'm setting it to won't fixed, change the status back in case you are moving this.
Comment #2
robby.smith commentedAs per Berdir's comment, moving to User Relationships queue. The setting I am looking at is the 'Private messages' fieldset setting at http://www.example.com/admin/user/relationships/settings
I would like to set it to 'Allow sending messages only to confirmed relationships' so that users on my site can only send messages to other users which they have confirmed a relationship with. This feature works great!
However, I would like Admin to be able to still send messages to any user for administrative purposes (sending updates, news etc). I confirmed that with this setting, Admin is also only able to send to users which Admin has a relationship to at the moment. Can this feature be expanded to give Admin special privileges?
Thank you
Comment #3
robby.smith commentedAnother reason this feature is needed:
When there is an event Relationship has been Requested, Approved, Disapproved etc I have an action to 'Sent a Message' via privatemsg with the details.
With this 'Restrict Private Messaging to only related users' also applying to Admin, this message is not able to be sent.
Thank you
Comment #4
robby.smith commentedChanged title from 'override' to 'exception'
Also, found this thread about someone who had to make this exception with views. http://drupal.org/node/375462#comment-2420700
Comment #5
robby.smith commentedThis feature is really cool making users only able to send message to one another if they have a relationship. But I think there should be a way to give exceptions for users such as admin.
What does everyone think?
Could someone people help implement this?
Thank you
Comment #6
YK85 commented+1 subscribing
Comment #7
Bilmar commented+1 for an option to allow admin extra privileges.
Temporary solution:
Adding line "&& ($author->uid != '1')" into user_relationships_api.privatemsg.inc
Comment #8
robby.smith commentedCan someone help add this feature as a checkbox in the settings?
The risk of forgetting to manually add the line on each update of the module is high =/
Would the maintainer of the module be open to adding this feature?
Is there another method of allowing admin more privileges than the average user?
Thanks!
Comment #9
okday commentedsubscribing
Comment #10
YK85 commentedI was wondering if the maintainer could please consider adding this functionality?
Thanks!
Comment #11
sotiris commented+1 for #10
Comment #12
robby.smith commentedkindly bumping
A feature to allow admin to add/remove the users to have an exception would be awesome as there may be more than one administrator that needs to have the exception.
Thanks!
Comment #13
berdirOk, here is a first patch...
- uid 1 is always excluded from the check
- Additional roles can be configured to be excluded too.
If you want to test it but don't know how to use patch files, you can also click the downloud source button at http://github.com/Berdir/user_relationships/tree/678806, which will download the whole module with the changes already applied.
Comment #14
Bilmar commentedhey Berdir,
I tested the patch with admin (uid1), other users, different roles and it looks great!
Users with a role selected in Role Exclusion are able to see all usernames in the To: autocomplete and send to them.
This definitely beats my workaround of having to add the lines of code with uid numbers =)
Thanks!
Comment #15
robby.smith commentedThanks Berdir for adding this much needed feature!
Tested and works great
+1 for commit
Comment #16
YK85 commentedAwesome! I added the patch to my site over the weekend.
+1 for commit
Comment #17
alex.k commentedSorry for the hold-up. Will process this and other patches in the next days. Thanks much to Berdir and reviewers.
Comment #18
alex.k commentedCommitted in http://drupal.org/cvs?commit=366672 Thanks!