Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/content.index.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function __construct(){
*/
public function build($context)
{
if(Administration::instance()->Author->isDeveloper()) {
if(Symphony::Author()->isDeveloper()) {
if($_POST['with-selected'] == 'delete' && is_array($_POST['items']))
{
foreach($_POST['items'] as $id_role => $value)
Expand Down
13 changes: 10 additions & 3 deletions content/content.roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,16 @@ public function viewForm()
$divEntries = new XMLElement('div', null, array('class'=>'sub entries'));
$label = Widget::Label();
// check if this checkbox is checked:
$attributes = $this->checkSection($id, 'own_entries') == 1 ? array('checked'=>'checked') : null;
$input = Widget::Input('section['.$id.'][own_entries]', null, 'checkbox', $attributes);
$label->setValue($input->generate() . ' ' . __('Author can view/edit own entries only'));
$attributes = $this->checkSection($id, 'view_own_entries') == 1 ? array('checked'=>'checked') : null;
$input = Widget::Input('section['.$id.'][view_own_entries]', null, 'checkbox', $attributes);
$label->setValue($input->generate() . ' ' . __('Author can view own entries only'));
$divEntries->appendChild($label);

$label = Widget::Label();
// check if this checkbox is checked:
$attributes = $this->checkSection($id, 'edit_own_entries') == 1 ? array('checked'=>'checked') : null;
$input = Widget::Input('section['.$id.'][edit_own_entries]', null, 'checkbox', $attributes);
$label->setValue($input->generate() . ' ' . __('Author can edit own entries only'));
$divEntries->appendChild($label);

$label = Widget::Label();
Expand Down
Loading