Browse Source

Renommer la constante

pull/1/head
nicod_ 12 months ago
parent
commit
33e4a9f6f1
  1. 4
      public/accesrestreint.php

4
public/accesrestreint.php

@ -253,7 +253,7 @@ function accesrestreint_forums_accessibles_where($primary, $_publique = '') {
$where = "array('OR',$where,"
."array('AND','zzzf.objet=\'breve\'',".accesrestreint_breves_accessibles_where('zzzf.id_objet', $_publique).")"
.")";
if(!defined('ACCES_RESTREINT_OBJET_LIEN_STRICT')) {
if(!defined('AR_RESTRICTION_LIENS_STRICTE')) {
$where = "array('OR',$where,sql_in('zzzf.objet',array('rubrique','article','breve'),'NOT',\$connect))";
}
@ -288,7 +288,7 @@ function accesrestreint_documents_accessibles_where($primary, $_publique = '') {
$where = "array('OR',$where,array('AND','zzzd.objet=\'article\'',".accesrestreint_articles_accessibles_where('zzzd.id_objet', $_publique)."))";
$where = "array('OR',$where,array('AND','zzzd.objet=\'breve\'',".accesrestreint_breves_accessibles_where('zzzd.id_objet', $_publique)."))";
$where = "array('OR',$where,array('AND','zzzd.objet=\'forum\'',".accesrestreint_forums_accessibles_where('zzzd.id_objet', $_publique)."))";
if(!defined('ACCES_RESTREINT_OBJET_LIEN_STRICT')) {
if(!defined('AR_RESTRICTION_LIENS_STRICTE')) {
$where = "array('OR',$where,sql_in('zzzd.objet',array('rubrique','article','breve','forum'),'NOT',\$connect))";
}

Loading…
Cancel
Save