Skip to content
Snippets Groups Projects
Commit abd248ac authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #25821 allow admin and super admin to access all articles cats in a news profil.

parent 0bbc8d7f
Branches
Tags
2 merge requests!948Dev #25821 skin mobile,!938Dev #25821 skin mobile
......@@ -28,20 +28,20 @@
<tr>
<td class="droite">Proposer un fil Rss&nbsp;</td>
<td class="gauche">
<?php echo $this->formCheckbox('rss_avis',
$this->preferences['rss_avis'],
null,
<?php echo $this->formCheckbox('rss_avis',
$this->preferences['rss_avis'],
null,
array('1', '0')) ?>
</td>
</tr>
</table>
</fieldset>
<?php
echo $this->partial("modules/_options_cms.phtml",
array('preferences' => $this->preferences,
'id_bib' => $this->id_bib,
'form_selector' => 'form.news'));
<?php
echo $this->partial("modules/_options_cms.phtml",
['preferences' => $this->preferences,
'id_bib' => Class_Users::getIdentity()->isAdmin() ? 0 : $this->id_bib,
'form_selector' => 'form.news']);
?>
<fieldset>
......@@ -50,9 +50,9 @@
<tr>
<td class="droite">Titres seulement&nbsp;</td>
<td class="gauche">
<?php echo $this->formCheckbox('display_titles_only',
$this->preferences['display_titles_only'],
null,
<?php echo $this->formCheckbox('display_titles_only',
$this->preferences['display_titles_only'],
null,
array('1', '0')) ?>
</td>
</tr>
......@@ -61,7 +61,7 @@
<td class="gauche"><?php echo $this->imageViewersOptions($this->preferences); ?></td>
</tr>
</table>
</fieldset>
<br />
......
......@@ -6,7 +6,7 @@ echo '<h1>'.$this->notice->getTitrePrincipal().'</h1>';
?>
<ul data-role="listview" data-inset="true">
<?php
$resumes = $this->notice->findAllResumes();
......@@ -22,8 +22,3 @@ foreach($resumes as $resume){?>
<li><?php echo 'Aucun resumé';?></li>
<?php } ?>
</ul>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment