On redirection addition, the antispam level is either set to the user's redirection...
[platal.git] / include / ufbuilder.inc.php
index f967ac1..fc7da8a 100644 (file)
@@ -720,7 +720,7 @@ class UFBF_Quick extends UFB_Field
         }
 
         if (count($strings)) {
-            if (S::logged()) {
+            if (S::user()->checkPerms('directory_private')) {
                 $flags = array();
             } else {
                 $flags = array('public');