From 40f07b9f2fcd14cc71849738b2f1ba428a778b8c Mon Sep 17 00:00:00 2001 From: Stuart Palmer Date: Mon, 23 Nov 2015 15:25:16 +0000 Subject: [PATCH 1/3] Update extension.driver.php --- extension.driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension.driver.php b/extension.driver.php index b521cba..77d75d0 100644 --- a/extension.driver.php +++ b/extension.driver.php @@ -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) { From 54af1eb289c424550f9f99b99ac2275db95f2fbe Mon Sep 17 00:00:00 2001 From: Stuart Palmer Date: Mon, 23 Nov 2015 15:25:33 +0000 Subject: [PATCH 2/3] Update content.index.php --- content/content.index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/content.index.php b/content/content.index.php index 71b033f..5e4c251 100644 --- a/content/content.index.php +++ b/content/content.index.php @@ -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) @@ -118,4 +118,4 @@ public function __viewIndex() $this->Form->appendChild($tableActions); } } -?> \ No newline at end of file +?> From daf13574b1f5c6a0562e80cf016239bde9ed3114 Mon Sep 17 00:00:00 2001 From: Stuart Palmer Date: Mon, 23 Nov 2015 15:40:14 +0000 Subject: [PATCH 3/3] Update meta file to reflect 2.6 compatibility --- extension.meta.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extension.meta.xml b/extension.meta.xml index 0e2920b..45397fa 100644 --- a/extension.meta.xml +++ b/extension.meta.xml @@ -1,4 +1,4 @@ - + Author Roles Add Roles to Symphony @@ -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. +