Skip to content

Commit

Permalink
Fixes permission check on 'Send %s a Message' profile link
Browse files Browse the repository at this point in the history
  • Loading branch information
linc committed Jan 23, 2011
1 parent 9538f5f commit 4195441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/conversations/settings/class.hooks.php
Expand Up @@ -47,7 +47,7 @@ public function ProfileController_AfterAddSideMenu_Handler(&$Sender) {
$Session = Gdn::Session();
if ($Session->IsValid() && $Session->UserID != $Sender->User->UserID) {
$SideMenu = $Sender->EventArguments['SideMenu'];
$SideMenu->AddLink('Options', sprintf(T('Send %s a Message'), $Sender->User->Name), '/messages/add/'.$Sender->User->Name, '', array('class' => 'MessageLink'));
$SideMenu->AddLink('Options', sprintf(T('Send %s a Message'), $Sender->User->Name), '/messages/add/'.$Sender->User->Name, FALSE, array('class' => 'MessageLink'));
$Sender->EventArguments['SideMenu'] = $SideMenu;
}
}
Expand Down

0 comments on commit 4195441

Please sign in to comment.