]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Access levels on add_to_river() will now respect ACCESS_DEFAULT level.
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 28 Jun 2009 20:10:06 +0000 (20:10 +0000)
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 28 Jun 2009 20:10:06 +0000 (20:10 +0000)
git-svn-id: https://code.elgg.org/elgg/trunk@3357 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/river2.php

index ecf0cbcb8ac28dc9d64774dfb6535db1e8e2b041..945eb1d68e90589e4ca1f072d9b3cf94d5ccb8ae 100644 (file)
@@ -28,7 +28,7 @@
                                                                $action_type,\r
                                                                $subject_guid,\r
                                                                $object_guid,\r
-                                                               $access_id = -1,\r
+                                                               $access_id = "",\r
                                                                $posted = 0\r
                                                          ) {\r
                                                                \r
@@ -38,7 +38,7 @@
                                if (!($object = get_entity($object_guid))) return false;\r
                                if (empty($action_type)) return false;\r
                                if ($posted == 0) $posted = time();\r
-                               if ($access_id == -1) $access_id = $object->access_id;\r
+                               if ($access_id === "") $access_id = $object->access_id;\r
                                \r
                                $type = $object->getType();\r
                                $subtype = $object->getSubtype();\r