Commit Graph

81 Commits

Author SHA1 Message Date
Ryan Wyllie
cd0c9ac87d MDL-50426 message: optional permission check on message
Changed the messaging API to allow you to provide a parameter
that will cause the code to check if the sender of the message
has the correct permissions before the message is sent.

The ajax messaging (message button on profile page) has been
updated to perform these permission checks. This brings it
inline with the existing private message page.
2015-11-05 08:20:39 +00:00
Mark Nelson
36d29c089c MDL-29801 core_message: added ability to delete messages
Thanks goes to Jetha for providing the HTML and CSS.
2015-09-02 01:31:17 -07:00
Adrian Greeve
83374afd92 MDL-49819 navigation: Messaging breadcrumb edit.
Messaging other users the name in the breadcrumb will
now direct to the conversation instead of the user profile.

Part of MDL-45774.
2015-04-10 17:23:07 +08:00
Adrian Greeve
45367bdf0c MDL-49688 navigation: First review fixes and version bump.
Part of MDL-45774.
2015-04-10 17:18:03 +08:00
Adrian Greeve
f495187da7 MDL-48935 navigation: Update the user nav breadcrumbs.
Part of MDL-45774.
2015-04-10 17:17:07 +08:00
Adrian Greeve
880c50731f MDL-48930 navigation: Using user headers in user pages.
Pages that are percieved to be in a user context are now
using a user context for the header.

Part of MDL-45774
2015-04-10 17:17:07 +08:00
David Monllao
553319be03 MDL-49204 core_message: Checking current user 2015-03-04 10:05:26 +08:00
Yuliya Bozhko
369484bf87 MDL-47033 general: Fix incorrect use of 'course' layout
It should use 'incourse' layout in most cases

Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2014-09-05 09:25:43 +12:00
Mark Nelson
ab1bc5d222 MDL-40913 core_message: replaced 'write' add_to_log call with an event 2014-03-07 15:15:43 -08:00
Mark Nelson
cd60936523 MDL-40913 core_message: replaced 'unblock contact' add_to_log call with an event 2014-03-07 15:15:43 -08:00
Mark Nelson
3f3d9521de MDL-40913 core_message: replaced 'block contact' add_to_log call with an event 2014-03-07 15:15:42 -08:00
Mark Nelson
5edf9f3bd3 MDL-40913 core_message: replaced 'remove contact' add_to_log call with an event 2014-03-07 15:15:42 -08:00
Mark Nelson
0d9bdf6185 MDL-40913 core_message: replaced 'add contact' add_to_log call with an event 2014-03-07 15:15:42 -08:00
Andrew Davis
811c0c8523 MDL-43671 message: removed an overly cautious check 2014-01-17 07:32:12 +08:00
Rajesh Taneja
9a90e7c57a MDL-42754 Messages: Show noreply user notifications
With fake noreply and support users, the notifications were not accessible by user
Support for viewing messages from noreply user has been added.

Signed-off-by: Rajesh Taneja <rajesh@moodle.com>
2013-11-07 13:08:30 +08:00
Rajesh Taneja
3bcf6b3cdd MDL-31560 Messages: Added support for noreply and support users
This is used by messaging system for sending/receiving message
to/from noreply or support user. message_send api will now use
core_user class to get noreply or support user and then
send/receive message depending on user state.
2013-09-13 16:13:26 +08:00
Marina Glancy
8f0137e192 MDL-41369 Pass viewing argument to more message screens 2013-09-04 17:11:30 +10:00
Marina Glancy
0e1bd87cc8 MDL-41369 Set proper context and navigation path for user messages 2013-08-26 17:32:57 +10:00
Andrew Davis
2e2d197798 MDL-37164 core_message: prevent users from interacting with themself 2013-02-11 08:48:56 +08:00
Dan Poltawski
751f00a0bb Revert "MDL-37164 core_message: prevent users from interacting with themself"
Was breaking unit tests.

This reverts commit 61a73b43c1 and 7bb19ee167.
2013-02-05 14:42:20 +08:00
Andrew Davis
7bb19ee167 MDL-37164 core_message: prevent users from interacting with themself 2013-02-01 08:12:28 +08:00
Andrew Davis
447df209cf MDL-13805 core_message: fixed the admin's ability to read another users messages 2013-01-28 16:07:37 +13:00
Ankit Agarwal
bf0f06b1be MDL-34471 libraries: Replace all uses of get_context_instance() with respective context_XXXX::instance() method 2012-08-02 15:37:38 +08:00
Andrew Davis
77d187ed1e MDL-28568 message: added a warning message when the user is about to message someone who cant reply 2012-07-19 17:14:50 +08:00
Andrew Davis
babc03f400 MDL-32082 message: added a function to make user checks more readable 2012-04-21 10:45:10 +07:00
Andrew Davis
48e03792ca MDL-31834 message: fixed up some not quite correct usage of moodle/site:readallmessages 2012-03-13 16:44:19 +01:00
Sam Hemelryk
a513048a00 Merge branch 'MDL-30987_message_docs2' of git://github.com/andyjdavis/moodle 2012-02-22 10:58:06 +13:00
Andrew Davis
6fbd60ef57 MDL-30987 message: updated phpdocs for /lib/messagelib.php and /message 2012-02-21 10:57:55 +07:00
Andrew Davis
762677611a MDL-31432 message: prevent messaging popups while viewing messages 2012-02-17 09:23:48 +07:00
andyjdavis
25bd5c75ab message MDL-26433 refactored the constants in messaging 2011-03-06 22:03:49 +08:00
Eloy Lafuente (stronk7)
c04c06dc8e Merge branch 'MDL-25616_recent_messages' of git://github.com/andyjdavis/moodle
Conflicts fixed:
	message/index.php
	message/lib.php
2011-02-15 19:26:21 +01:00
andyjdavis
3a00a167c6 message MDL-26119 fixed up the logged URL 2011-02-15 14:24:13 +08:00
andyjdavis
bcab42daf2 message MDL-25616 adding recent conversations and recent notifications screens 2011-02-15 11:17:38 +08:00
Sam Hemelryk
ada93b58fb Revert "message MDL-26119 now logs when a user sends a message" because the log URL generated is incorrect
This reverts commit 88c9987e89.
2011-02-09 16:25:39 +08:00
andyjdavis
88c9987e89 message MDL-26119 now logs when a user sends a message 2011-02-03 13:37:01 +08:00
Andrew Davis
323409c54c message MDL-25240 switched personal messages from FORMAT_PLAIN to FORMAT_MOODLE 2010-12-09 06:39:53 +00:00
Andrew Davis
affefa8cc3 message MDL-25240 corrected index.php's description 2010-11-17 06:34:59 +00:00
Andrew Davis
fe8373bcd2 message MDL-25033 made message search appear by default 2010-11-03 07:33:26 +00:00
Andrew Davis
ee5ae29752 message MDL-24970 removed more no longer used code 2010-11-03 03:58:13 +00:00
Andrew Davis
08cd70cf48 message MDL-24972 integrated message search into /message/index.php instead of having it happen on a separate page. This removed the need for contacts.php to exist. 2010-11-02 06:09:10 +00:00
Andrew Davis
a813a74843 message MDL-24771 a big commit that fixes a whole bunch of small issues with messaging 2010-10-25 09:29:34 +00:00
Andrew Davis
d54286e7a6 message MDL-24786 adding paging to the message page 2010-10-21 06:38:45 +00:00
Andrew Davis
e41da832de message MDL-24548 made the handling of users being blocked a little more logical 2010-10-15 07:32:06 +00:00
Andrew Davis
27a3976343 message MDL-24548 some emergency bug fixes to messaging 2010-10-08 02:31:57 +00:00
Andrew Davis
728114df4d message MDLSITE-1039 made it so when youre viewing new messages you only see new messages 2010-10-06 07:38:51 +00:00
Petr Skoda
71666cf314 spelling fixes 2010-09-17 19:41:02 +00:00
Petr Skoda
a8320bc431 MDL-23184 some TODOs for incorrect text cleaning 2010-09-02 18:41:38 +00:00
Andrew Davis
02f2c7bda1 messaging MDL-22320 replaced the old popup index.php with the new non-popup index.php 2010-06-29 07:27:24 +00:00
Andrew Davis
c8621a0280 messaging MDL-22320 first commit for new messaging UI 2010-06-25 08:16:10 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00