From d46c05b12b9dcd65d2d9cd230bf45b5bdf6fa8bd Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 22 Nov 2018 00:09:55 +0100 Subject: linkfrom analyse --- app/view/templates/home.php | 2 +- app/view/templates/hometopbar.php | 2 +- app/view/templates/media.php | 5 +---- app/view/templates/navart.php | 4 ++-- app/view/templates/navback.php | 2 +- app/view/templates/read.php | 2 +- 6 files changed, 7 insertions(+), 10 deletions(-) (limited to 'app/view') diff --git a/app/view/templates/home.php b/app/view/templates/home.php index b5b9f67..a11f9e3 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -10,7 +10,7 @@ insert('hometopbar', ['user' => $user]) ?> -canedit()) { ?> +iseditor()) { ?>
diff --git a/app/view/templates/hometopbar.php b/app/view/templates/hometopbar.php index 0640119..ff0b5f8 100644 --- a/app/view/templates/hometopbar.php +++ b/app/view/templates/hometopbar.php @@ -21,7 +21,7 @@ User level : level() ?> -canedit()) { ?> +iseditor()) { ?> diff --git a/app/view/templates/media.php b/app/view/templates/media.php index 8b189d5..31e3ad0 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -1,4 +1 @@ -layout('base', ['title' => 'Media']) ?> - -

Media

-

Hello, e($interface)?>

\ No newline at end of file +layout('layout', ['title' => 'Media']) ?> diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php index a98eed6..d3baef5 100644 --- a/app/view/templates/navart.php +++ b/app/view/templates/navart.php @@ -89,7 +89,7 @@ -canedit() && $artexist) { ?> +iseditor() && $artexist) { ?>
  • display @@ -101,7 +101,7 @@ -canedit()) { ?> +iseditor()) { ?>
  • Media diff --git a/app/view/templates/navback.php b/app/view/templates/navback.php index c738ae2..8218897 100644 --- a/app/view/templates/navback.php +++ b/app/view/templates/navback.php @@ -31,7 +31,7 @@ -canedit()) { ?> +iseditor()) { ?>
  • Media diff --git a/app/view/templates/read.php b/app/view/templates/read.php index 1911cf6..4e18cb3 100644 --- a/app/view/templates/read.php +++ b/app/view/templates/read.php @@ -52,7 +52,7 @@ $this->stop(); } else { echo '

    ' . $alertnotexist . '

    '; - if ($cancreate) { + if ($user->iseditor()) { ?> ⭐ Create