]> git.mjollnir.org Git - s9y.git/commitdiff
Check image view permissions
authorgarvinhicking <garvinhicking>
Sun, 31 Jul 2005 21:20:56 +0000 (21:20 +0000)
committergarvinhicking <garvinhicking>
Sun, 31 Jul 2005 21:20:56 +0000 (21:20 +0000)
29 files changed:
docs/NEWS
include/functions_config.inc.php
include/functions_images.inc.php
lang/serendipity_lang_bg.inc.php
lang/serendipity_lang_cn.inc.php
lang/serendipity_lang_cs.inc.php
lang/serendipity_lang_cz.inc.php
lang/serendipity_lang_da.inc.php
lang/serendipity_lang_de.inc.php
lang/serendipity_lang_en.inc.php
lang/serendipity_lang_es.inc.php
lang/serendipity_lang_fa.inc.php
lang/serendipity_lang_fi.inc.php
lang/serendipity_lang_fr.inc.php
lang/serendipity_lang_hu.inc.php
lang/serendipity_lang_is.inc.php
lang/serendipity_lang_it.inc.php
lang/serendipity_lang_ja.inc.php
lang/serendipity_lang_ko.inc.php
lang/serendipity_lang_nl.inc.php
lang/serendipity_lang_no.inc.php
lang/serendipity_lang_pt.inc.php
lang/serendipity_lang_pt_PT.inc.php
lang/serendipity_lang_ro.inc.php
lang/serendipity_lang_ru.inc.php
lang/serendipity_lang_se.inc.php
lang/serendipity_lang_tn.inc.php
lang/serendipity_lang_tw.inc.php
lang/serendipity_lang_zh.inc.php

index b76dac6f1cb7b4b206a500ccc462d8fef61e518e..826cd6d387236bfa3e00a4132cf2ead8d8aeedd3 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,11 @@
 Version 0.9 ()
 ------------------------------------------------------------------------
 
+    * Permissions: The permission "adminImagesViewOthers" now controls
+      whether an author is allowed to view images or not. In older Serendipity
+      versions, any author could always view any images, but only modify those
+      belonging to him. (garvinhicking)
+
     * Plugin API: Added plugin hooks for category properties, made smarty
       init function accept plugin values. See the plugin "Properties for
       Categories" for example usage. The plugin allows to create sub-blogs
index 1a12e8409821dbf9670d77dc32fa5273862a3dd1..91d751eda0c8b8ca50a91355d957e0bf2ce9e21a 100644 (file)
@@ -592,6 +592,8 @@ function serendipity_getPermissionNames() {
             => array(USERLEVEL_ADMIN, USERLEVEL_CHIEF, USERLEVEL_EDITOR),
         'adminImagesMaintainOthers' 
             => array(USERLEVEL_ADMIN, USERLEVEL_CHIEF),
+        'adminImagesViewOthers' 
+            => array(USERLEVEL_ADMIN, USERLEVEL_CHIEF, USERLEVEL_EDITOR),
         'adminImagesView' 
             => array(USERLEVEL_ADMIN, USERLEVEL_CHIEF, USERLEVEL_EDITOR),
         'adminImagesSync' 
index 193b89f6d03531c749951b7a8ba696f0bb318b89..07157f47a51fdd5fa10e66911f51d9412d086aed 100644 (file)
@@ -40,6 +40,17 @@ function serendipity_fetchImagesFromDatabase($start=0, $limit=0, &$total, $order
             $directorysql .= " AND   name like '%" . serendipity_db_escape_string($filename) . "%'";
         }
     }
+    
+    $perm = $permsql = '';
+    if (isset($serendipity['authorid']) && !serendipity_checkPermission('adminImagesViewOthers')) {
+        $perm = " (i.authorid = 0 OR i.authorid = " . (int)$serendipity['authorid'] . ")";
+        if (empty($directorysql)) {
+            $directorysql = " WHERE  $perm";
+        } else {
+            $directorysql .= " AND   $perm";
+        }
+        $permsql = " WHERE $perm"; 
+    }    
 
     $query = "SELECT i.*, a.realname AS authorname FROM {$serendipity['dbPrefix']}images AS i LEFT OUTER JOIN {$serendipity['dbPrefix']}authors AS a ON i.authorid = a.authorid $directorysql ORDER BY $order $ordermode $limitsql";
     $rs = serendipity_db_query($query, false, 'assoc');
@@ -47,7 +58,7 @@ function serendipity_fetchImagesFromDatabase($start=0, $limit=0, &$total, $order
         return array();
     }
 
-    $total_query = "SELECT count(i.id) FROM {$serendipity['dbPrefix']}images AS i LEFT OUTER JOIN {$serendipity['dbPrefix']}authors AS a on i.authorid = a.authorid";
+    $total_query = "SELECT count(i.id) FROM {$serendipity['dbPrefix']}images AS i LEFT OUTER JOIN {$serendipity['dbPrefix']}authors AS a on i.authorid = a.authorid $permsql";
     $total_rs = serendipity_db_query($total_query, true, 'num');
     if (is_array($total_rs)) {
         $total = $total_rs[0];
@@ -1022,6 +1033,11 @@ function serendipity_displayImageList($page = 0, $lineBreak = NULL, $manage = fa
             $file['imgsrc'] = $serendipity['uploadHTTPPath'] . $file['path'] . $file['name'] . '.' . $file['thumbnail_name'] . '.' . $file['extension'];
             $is_image = serendipity_isImage($file);
 
+            if (!($serendipity['authorid'] == $file['authorid'] || $file['authorid'] == '0' || serendipity_checkPermission('adminImagesViewOthers'))) {
+                // This is a fail-safe continue. Basically a non-matching file should already be filtered in SQL.
+                continue;
+            }
+
             /* If it is an image, and the thumbnail exists */
             if ($is_image && file_exists($img)) {
                 $preview .= '<img src="' . $serendipity['serendipityHTTPPath'] . $file['imgsrc'] . '" border="0" title="' . $file['path'] . $file['name'] . '" alt="'. $file['name'] . '" />';
index b6fc0bba30d66e839c3a8d612b8ba7858e434211..570ec88a8eb39dc28cfd84390e8ba177ef485da6 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index f76a63a8c73678276052b829283b6e022b04d53e..d36f4c870ed2d6ab726254db47dd08f4796a463c 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 54342e765f16c1c80ca163421b9a864f9eb8c5cc..cb6710a38659630410de3a26f88534707546c821 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 7b129184ba60755912e0adb6db008568aa9cd5e0..983b34beafd31b653417da6fbf630a744bfeeb42 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index d5e90be807e4bf93a3cae513527e615e614748a0..2ab9d3ab9aef37fcce8bd917d05559173826a2fc 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 00e8d10d01d8d45767cc8070445cd109cf9bd704..3d209abf600802865ed0c4a524c4971983e170df 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index c39b2fb7e516a5e59178e78d728ad48b3fb78c11..71d2ee394b184953228b374034758f5e5a1ddb47 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Templates of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Templates of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 93c753a79c25c3925d3338329d36522ce04784fc..87facfa272d0e2c8a5e20dcab4f505e630be70a1 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 9a47356f91f2c901f941f22821a52d62d32baa94..93e649176d79231a5acdc847d7ab30f30898a491 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 129bcdfaf25537f1b5ef92e85b9a8eb807016a75..dd770510ac3790b24085af85fbcd098d4c5e5750 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 23b0b95e464ffb1be58ca950efa08cc799f921c6..5d601bb949394700cc9f1dedc48b717db36a755d 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index df87c480f9235a8c45735f09df8f14261b1d4498..6c3373a697e7dbe31eab817943981e9fab2104e9 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 01734969f45db510af67f72bb733a08e0633b30f..5a08f2a1d601a9d0b5723609507af0b82ede2e5b 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index e6f719cc61b8b5d4caa115ea1dd11bee8a2539db..b044c28c1ccc03358d8d2d45b4bfe606c9b09567 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 1132b3a1adc025513b584bdde323d3be142de7cd..ff0556f4de68a9181ebd9c1a5a4543b878ff0fdd 100644 (file)
@@ -766,4 +766,5 @@ Serendipity のアップグレードステージを無視しました。正し
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index bc7de2a8e050451cfe87eb008228f8eaedbd3f3e..7c4e87313241ba622f8524c57b88bef8bc10a8c7 100644 (file)
 @define('CATEGORIES_PARENT_BASE_DESC', '하나의 상위 범주를 골라서 그 아래에 있는 범주만 보이도록 할 수 있습니다.');
 @define('CATEGORIES_HIDE_PARALLEL', '범주 트리에 속하지 않는 범주 숨기기');
 @define('CATEGORIES_HIDE_PARALLEL_DESC', '다른 범주 트리에 속해 있는 범주를 보이지 않게 하려면 이것을 사용하십시오. "범주의 속성/템플릿" 플러그인을 적용한 멀티-블로그와 함께 사용할 때 가장 의미가 있습니다.');
+
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 35ce9d6eea7d4a4f6bd2a33ad7af8ef6de770726..f3a4d1119ada2fff6dee430a83ffff8cb063ce81 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index ab4d0424f22d6eabd0d44305e7bff6259b317a4d..4ae19ddd05c1fd0f30df9f67e61e744b3f4e17fb 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 062f8067c58d5921985cd111d9ab20f94d91f827..f80dab04fd2ff6c3cc8436d38242b76abe01cdcf 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index eb62820dc4c0ba4793bd758d384f0daf52d03992..0f313a9e41f15c57044856d6a3b8b6fb727365a4 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 88cc877c5d58147593e6649422d14530f9b9a3c8..9d7990d7dc453cecf62a8710c6796d39dce20ea9 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 032e06fe7152f6e961d5588e63b0f1787170022b..af566c9aa1f3e53685850de510862ec2b15cbd3c 100644 (file)
@@ -768,4 +768,5 @@ $i18n_filename_to   = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 1f204ae62ef8ab78755a247caad5195aa746830c..2c48b0356d2996e45576bc236a8a0337ad705837 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 97a1d5bffa4483ac1a18bbb621233f899de014e9..b21dec81ba92dd981f13ab04322968abd2b20b76 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index d638162d6733f7ed771872e7f968601b0ff7533b..6f4d5540f52be752aa1afbe0357af08ae1b086f5 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');
index 6677a64d03096cbb6a51f0df6eda6c355017e5df..c4324f3f5b48bd32b0756e55f9cc03f431593f36 100644 (file)
 @define('CATEGORIES_PARENT_BASE', 'Only show categories below...');
 @define('CATEGORIES_PARENT_BASE_DESC', 'You can choose a parent category so that only the child categories are shown.');
 @define('CATEGORIES_HIDE_PARALLEL', 'Hide categories that are not part of the category tree');
-@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
\ No newline at end of file
+@define('CATEGORIES_HIDE_PARALLEL_DESC', 'If you want to hide categories that are part of a different category tree, you need to enable this. This feature makes most sense if used in conjunction with a multi-blog using the "Properties/Tempaltes of categories" plugin.');
+@define('PERMISSION_ADMINIMAGESVIEWOTHERS', 'adminImagesViewOthers: View other user\'s media files');