?
avatar deepanshu-jha
deepanshu-jha
17 Oct 2014

com_messages

Private Messages Manager: Write Private Message
User list is null when writing a new private message on clicking the "select user" modal popup field.

The list of users is not displayed when clicking the select user modal in com_messages for writing a new private message to a user.

Steps to reproduce the issue

-> Go to components.
-> Open Messaaging.
-> Click on NEW.
-> Click on select user for 'Recipient' field.

Expected result

The user list should be fetched & displayed to select a user from it.

Actual result

No user list is retrieved

Votes

# of Users Experiencing Issue
1/2
Average Importance Score
3.50

avatar deepanshu-jha deepanshu-jha - open - 17 Oct 2014
avatar zero-24
zero-24 - comment - 17 Oct 2014

@deepanshu-jha a user need to be a manager or super user by default. Have you check this?

avatar jigarkg
jigarkg - comment - 17 Oct 2014

reproduce in joomla 3.3.7-dev (ubuntu).

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4738.

avatar wilsonge
wilsonge - comment - 17 Oct 2014

This list will only display manager or superusers. If you are the only superuser on the site then it is expected that this list will be empty.

Note on my site I can see the other superuser I have. So I cannot replicate this bug

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4738.

avatar lausianne
lausianne - comment - 17 Oct 2014

reproduced in joomla 3.3.7-dev (Win7 - AMPPS)

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4738.

avatar deepanshu-jha
deepanshu-jha - comment - 17 Oct 2014

Thanks for the fruitful information George.

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4738.

avatar 1apweb
1apweb - comment - 17 Oct 2014

A user is created in user manager?

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4738.

avatar Kubik-Rubik Kubik-Rubik - change - 17 Oct 2014
Priority Critical Medium
avatar wilsonge
wilsonge - comment - 17 Oct 2014

No worries! The reason is that only people who have backend access can use com_messages (as it has no frontend views)

So these are the 3 groups we allow:

core.admin (global), core.manage (in com_messages) and core.login.admin

https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_messages/models/fields/usermessages.php#L56-L69

avatar lausianne
lausianne - comment - 17 Oct 2014

Backend access can be given to any group. So this feature should depend on permissions, not groups, shouldn't it? And then, the permissions and memberships can change any time. So if I write a message to a registered user, he could receive my message when I either change group permissions or change group membership.

avatar infograf768 infograf768 - close - 17 Oct 2014
avatar zero-24 zero-24 - close - 17 Oct 2014
avatar nicksavov nicksavov - close - 17 Oct 2014
avatar infograf768 infograf768 - change - 17 Oct 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-10-17 10:28:45
avatar zero-24
zero-24 - comment - 17 Oct 2014

@lausianne

Backend access can be given to any group. So this feature should depend on permissions, not groups, shouldn't it?

It is not depend on groups but by default only the both groups manager and super user have the permissions to do it.

See the comment by @wilsonge #4738 (comment) and the snippet form the code:
https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_messages/models/fields/usermessages.php#L56-L69

avatar N6REJ
N6REJ - comment - 17 Oct 2014

I think this needs to be reopened, if only special users are able to recieve messages then why are other groups listed? Either fix it so only allowed groups are listed, or fix the bug not listing all users

avatar wilsonge
wilsonge - comment - 17 Oct 2014

OK so all those users should appear in the list. It just happens on the site I tested on the only admins or people with backend access are the two superusers

avatar lausianne
lausianne - comment - 17 Oct 2014

One possibility is to do it like with buttons and menu items: show everything and grey out what's not available.

avatar wilsonge
wilsonge - comment - 17 Oct 2014

So imagine a site (and this is viable with like 20k users and 3/4 admins) - it's not the best use of time ever :P

avatar nicksavov nicksavov - change - 17 Oct 2014
Labels Added: ?
avatar deepanshu-jha
deepanshu-jha - comment - 18 Oct 2014

If this issue is not going to be entertained, then I would like to suggest that atleast we can provide a tooltip info following the " Recipient " field which will make the users aware of the fact that only specific usergroups(like superusers) are listed in the modal popup. This will surely minimize the state of confusion to a great extent.

avatar zero-24
zero-24 - comment - 18 Oct 2014

@deepanshu-jha done here: #4830

avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment