set comment permissions explicitly to parent permissions

This commit is contained in:
friendica 2012-05-19 16:42:24 -07:00
parent 513ef2410d
commit dd86f40f96
3 changed files with 49 additions and 20 deletions

View file

@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php'); require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '3.0.1346' ); define ( 'FRIENDICA_VERSION', '3.0.1347' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1144 ); define ( 'DB_UPDATE_VERSION', 1144 );

View file

@ -218,14 +218,23 @@ function item_post(&$a) {
$private = ((strlen($str_group_allow) || strlen($str_contact_allow) || strlen($str_group_deny) || strlen($str_contact_deny)) ? 1 : 0); $private = ((strlen($str_group_allow) || strlen($str_contact_allow) || strlen($str_group_deny) || strlen($str_contact_deny)) ? 1 : 0);
if(($parent_item) && // If this is a comment, set the permissions from the parent.
(($parent_item['private'])
if($parent_item) {
$private = 0;
if(($parent_item['private'])
|| strlen($parent_item['allow_cid']) || strlen($parent_item['allow_cid'])
|| strlen($parent_item['allow_gid']) || strlen($parent_item['allow_gid'])
|| strlen($parent_item['deny_cid']) || strlen($parent_item['deny_cid'])
|| strlen($parent_item['deny_gid']) || strlen($parent_item['deny_gid'])) {
)) { $private = 1;
$private = 1; }
$str_contact_allow = $parent_item['allow_cid'];
$str_group_allow = $parent_item['allow_gid'];
$str_contact_deny = $parent_item['deny_cid'];
$str_group_deny = $parent_item['deny_gid'];
} }
$pubmail_enable = ((x($_REQUEST,'pubmail_enable') && intval($_REQUEST['pubmail_enable']) && (! $private)) ? 1 : 0); $pubmail_enable = ((x($_REQUEST,'pubmail_enable') && intval($_REQUEST['pubmail_enable']) && (! $private)) ? 1 : 0);

View file

@ -6,9 +6,9 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 3.0.1346\n" "Project-Id-Version: 3.0.1347\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-05-18 10:00-0700\n" "POT-Creation-Date: 2012-05-19 10:00-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -577,7 +577,7 @@ msgstr ""
msgid "Community" msgid "Community"
msgstr "" msgstr ""
#: ../../mod/community.php:61 ../../mod/search.php:128 #: ../../mod/community.php:61 ../../mod/search.php:134
msgid "No results." msgid "No results."
msgstr "" msgstr ""
@ -1691,7 +1691,8 @@ msgstr ""
#: ../../mod/regmod.php:54 ../../mod/dfrn_confirm.php:752 #: ../../mod/regmod.php:54 ../../mod/dfrn_confirm.php:752
#: ../../addon/facebook/facebook.php:688 #: ../../addon/facebook/facebook.php:688
#: ../../addon/facebook/facebook.php:1178 #: ../../addon/facebook/facebook.php:1178
#: ../../addon/testdrive/testdrive.php:58 ../../include/items.php:2738 #: ../../addon/public_server/public_server.php:62
#: ../../addon/testdrive/testdrive.php:61 ../../include/items.php:2738
#: ../../boot.php:696 #: ../../boot.php:696
msgid "Administrator" msgid "Administrator"
msgstr "" msgstr ""
@ -3833,6 +3834,11 @@ msgstr ""
msgid "%1$s changed %2$s to &ldquo;%3$s&rdquo;" msgid "%1$s changed %2$s to &ldquo;%3$s&rdquo;"
msgstr "" msgstr ""
#: ../../mod/profiles.php:332
#, php-format
msgid " - Visit %1$s's %2$s"
msgstr ""
#: ../../mod/profiles.php:335 #: ../../mod/profiles.php:335
#, php-format #, php-format
msgid "%1$s has an updated %2$s, changing %3$s." msgid "%1$s has an updated %2$s, changing %3$s."
@ -4857,6 +4863,25 @@ msgstr ""
msgid "Enable Geonames Plugin" msgid "Enable Geonames Plugin"
msgstr "" msgstr ""
#: ../../addon/public_server/public_server.php:126
#: ../../addon/testdrive/testdrive.php:88
#, php-format
msgid "Your account on %s will expire in a few days."
msgstr ""
#: ../../addon/public_server/public_server.php:127
msgid "Your Friendica account is about to expire."
msgstr ""
#: ../../addon/public_server/public_server.php:128
#, php-format
msgid ""
"Hi %1$s,\n"
"\n"
"Your account on %2$s will expire in less than five days. You may keep your "
"account by logging in at least once every 30 days"
msgstr ""
#: ../../addon/js_upload/js_upload.php:43 #: ../../addon/js_upload/js_upload.php:43
msgid "Upload a file" msgid "Upload a file"
msgstr "" msgstr ""
@ -5116,16 +5141,11 @@ msgstr ""
msgid "Gravatar settings updated." msgid "Gravatar settings updated."
msgstr "" msgstr ""
#: ../../addon/testdrive/testdrive.php:85 #: ../../addon/testdrive/testdrive.php:89
#, php-format
msgid "Your account on %s will expire in a few days."
msgstr ""
#: ../../addon/testdrive/testdrive.php:86
msgid "Your Friendica test account is about to expire." msgid "Your Friendica test account is about to expire."
msgstr "" msgstr ""
#: ../../addon/testdrive/testdrive.php:87 #: ../../addon/testdrive/testdrive.php:90
#, php-format #, php-format
msgid "" msgid ""
"Hi %1$s,\n" "Hi %1$s,\n"
@ -6201,12 +6221,12 @@ msgstr ""
msgid "Finishes:" msgid "Finishes:"
msgstr "" msgstr ""
#: ../../include/delivery.php:452 ../../include/notifier.php:652 #: ../../include/delivery.php:455 ../../include/notifier.php:659
msgid "(no subject)" msgid "(no subject)"
msgstr "" msgstr ""
#: ../../include/delivery.php:459 ../../include/enotify.php:23 #: ../../include/delivery.php:462 ../../include/enotify.php:23
#: ../../include/notifier.php:659 #: ../../include/notifier.php:666
msgid "noreply" msgid "noreply"
msgstr "" msgstr ""