|
@@ -12,8 +12,6 @@ if(!defined('entry'))define('entry', true);
|
12
|
12
|
=========================== */
|
13
|
13
|
?>
|
14
|
14
|
<?php
|
15
|
|
-
|
16
|
|
-
|
17
|
15
|
require('../entry.php');
|
18
|
16
|
global $user, $conf, $tumble;
|
19
|
17
|
$template = new plantillas("admin");
|
|
@@ -21,7 +19,7 @@ $template = new plantillas("admin");
|
21
|
19
|
$isEdition = (isset($_GET["edit"])) ? true : false;
|
22
|
20
|
$postId = ($isEdition) ? $_GET["edit"] : NULL;
|
23
|
21
|
|
24
|
|
-if ($user->isAdmin()) {
|
|
22
|
+if ($user->isAuthenticated()) {
|
25
|
23
|
|
26
|
24
|
if (isset($_GET["delete"])) {
|
27
|
25
|
$tumble->deletePost($_GET['delete']);
|