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
4 changes: 2 additions & 2 deletions 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(Administration::instance()->Author()->isDeveloper()) {
if($_POST['with-selected'] == 'delete' && is_array($_POST['items']))
{
foreach($_POST['items'] as $id_role => $value)
Expand Down Expand Up @@ -118,4 +118,4 @@ public function __viewIndex()
$this->Form->appendChild($tableActions);
}
}
?>
?>
2 changes: 1 addition & 1 deletion extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ private function adjustEntryEditor($context, $callback) {
*/
private function getCurrentAuthorRoleData() {
if(Administration::instance()->isLoggedIn()) {
$id_author = Administration::instance()->Author->get('id');
$id_author = Administration::instance()->Author()->get('id');
$id_role = $this->getAuthorRole($id_author);

if($id_role != false) {
Expand Down
3 changes: 2 additions & 1 deletion extension.meta.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.3" encoding="UTF-8"?>
<extension id="author_roles" status="released" xmlns="http://symphony-cms.com/schemas/extension/1.0">
<name>Author Roles</name>
<description>Add Roles to Symphony</description>
Expand All @@ -21,5 +21,6 @@
to Symphony to make sure the 'Author Roles'-extension is executed as last, after all other extensions have
made their possible modifications to the navigation. Read the readme for more details.
</release>
<release version="1.3" date="2015-11-23" min="2.3" max="2.6" />
</releases>
</extension>