Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
privatemsg-3406677
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
privatemsg-3406677
Commits
3f19b5ca
Commit
3f19b5ca
authored
17 years ago
by
Alan Harder
Browse files
Options
Downloads
Patches
Plain Diff
#117981
don't show "write to author" links to yourself
parent
fdd0570d
No related branches found
Branches containing commit
Tags
4.7.x-1.3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
privatemsg.module
+1
-1
1 addition, 1 deletion
privatemsg.module
with
1 addition
and
1 deletion
privatemsg.module
+
1
−
1
View file @
3f19b5ca
...
...
@@ -30,7 +30,7 @@ function privatemsg_help($section) {
function
privatemsg_link
(
$type
,
$node
=
0
,
$main
=
0
)
{
global
$user
;
static
$access
=
array
();
if
(
user_access
(
'access private messages'
)
&&
(
$type
==
'node'
||
$type
==
'comment'
)
&&
variable_get
(
"privatemsg_link_
$type
"
,
0
)
&&
(
isset
(
$user
->
privatemsg_allow
)
?
$user
->
privatemsg_allow
:
1
))
{
if
(
user_access
(
'access private messages'
)
&&
(
$type
==
'node'
||
$type
==
'comment'
)
&&
variable_get
(
"privatemsg_link_
$type
"
,
0
)
&&
$node
->
uid
!=
$user
->
uid
&&
(
isset
(
$user
->
privatemsg_allow
)
?
$user
->
privatemsg_allow
:
1
))
{
if
(
!
isset
(
$access
[
$node
->
uid
]))
{
$author
=
user_load
(
array
(
'uid'
=>
$node
->
uid
));
$access
[
$node
->
uid
]
=
user_access
(
'access private messages'
,
$author
)
&&
$author
->
uid
&&
(
isset
(
$author
->
privatemsg_allow
)
?
$author
->
privatemsg_allow
:
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment