mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Allow linking to users who are linked to you. SF#1710605.
This commit is contained in:
parent
48853d4668
commit
d2751f18a6
@ -139,9 +139,8 @@ class RSCDSUser extends User
|
|||||||
if ( $ef->EditMode ) { // && $session->AllowedTo("MaintainRelationships") ) {
|
if ( $ef->EditMode ) { // && $session->AllowedTo("MaintainRelationships") ) {
|
||||||
$sql = <<<EOSQL
|
$sql = <<<EOSQL
|
||||||
SELECT user_no, fullname FROM usr
|
SELECT user_no, fullname FROM usr
|
||||||
WHERE NOT EXISTS ( SELECT 0 FROM relationship
|
WHERE NOT EXISTS ( SELECT 0 FROM relationship WHERE (to_user = usr.user_no AND from_user = $this->user_no))
|
||||||
WHERE (to_user = usr.user_no AND from_user = $this->user_no)
|
AND user_no != $this->user_no
|
||||||
OR (from_user = usr.user_no AND to_user = $this->user_no))
|
|
||||||
EOSQL;
|
EOSQL;
|
||||||
if ( isset($this->roles['Group']) ) {
|
if ( isset($this->roles['Group']) ) {
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user