RE: Profiles, public != visitor. fixes #10907
This commit is contained in:
parent
cba211392e
commit
1e98e34128
3 changed files with 3 additions and 1 deletions
2
t/User.t
2
t/User.t
|
|
@ -917,7 +917,7 @@ ok(! $neighbor->profileIsViewable($friend), '... visitor permission follows publ
|
|||
ok(! $neighbor->profileIsViewable($admin), '... visitor permission follows publicProfile=none, even admin');
|
||||
$neighbor->profileField('publicProfile', 'all');
|
||||
ok( $neighbor->profileIsViewable($friend), '... visitor permission follows publicProfile=all');
|
||||
ok( $neighbor->profileIsViewable($visitor), '... visitor permission follows publicProfile=all, even visitor');
|
||||
ok(! $neighbor->profileIsViewable($visitor), '... visitor may not see profiles, regardless of privacy setting');
|
||||
$neighbor->profileField('publicProfile', 'friends');
|
||||
ok(! $neighbor->profileIsViewable($friend), '... visitor permission follows publicProfile=friend, not a friend');
|
||||
$friend->addToGroups([$neighbor->friends->getId]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue