]> git.mjollnir.org Git - s9y.git/commitdiff
only show for admins
authorgarvinhicking <garvinhicking>
Mon, 26 Dec 2005 20:00:59 +0000 (20:00 +0000)
committergarvinhicking <garvinhicking>
Mon, 26 Dec 2005 20:00:59 +0000 (20:00 +0000)
plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php

index d7204ae9f177eacef6737f3de7c0bdb165e49283..6367fdb4d24aabc1a5dfd49f5111c8a1443fe666 100644 (file)
@@ -21,7 +21,7 @@ class serendipity_event_entryproperties extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_ENTRYPROPERTIES_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Garvin Hicking');
-        $propbag->add('version',       '1.7');
+        $propbag->add('version',       '1.8');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -364,7 +364,7 @@ class serendipity_event_entryproperties extends serendipity_event
                     break;
 
                 case 'backend_sidebar_entries':
-                    if ($is_cache) {
+                    if ($is_cache && $serendipity['userlevel'] >= USERLEVEL_ADMIN) {
 ?>
                         <li><a href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=buildcache"><?php echo PLUGIN_EVENT_ENTRYPROPERTY_BUILDCACHE; ?></a></li>
 <?php