Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Create friends ACL and get rid of ACCESS_FRIENDS #11387

Closed
wants to merge 86 commits into from

Conversation

jdalsem
Copy link
Member

@jdalsem jdalsem commented Nov 10, 2017

Fixes #3391, #5038
Refs #8073, #3872

@jdalsem jdalsem changed the title Create friends ACL and get rid of ACCESS_FRIENDS WIP Create friends ACL and get rid of ACCESS_FRIENDS Nov 10, 2017
* @since 3.0
*/
public function getOwnedAccessCollection($subtype) {
if (!is_string($subtype)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| $subtype === ''

@@ -1301,7 +1323,11 @@ protected function create() {
$container_guid = (int) $container_guid;

if ($access_id == ACCESS_DEFAULT) {
throw new \InvalidParameterException('ACCESS_DEFAULT is not a valid access level. See its documentation in elgglib.h');
throw new \InvalidParameterException('ACCESS_DEFAULT is not a valid access level. See its documentation in elgglib.php');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not elgglib.php but in constants.php ....

* @param \Elgg\Event $event event
*
* @return void
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@since and @internal

@@ -531,5 +631,11 @@ function access_test($hook, $type, $value, $params) {
// and the user is logged in so it can start caching
$events->registerHandler('ready', 'system', 'access_init');

// friends ACL events
$events->registerHandler('create', 'user', 'access_friends_acl_create');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if create:after is available

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not available

jdalsem and others added 17 commits November 30, 2017 15:11
Conflicts:
	.travis.yml
	composer.json
	engine/classes/Elgg/Database/Seeds/Seed.php
	engine/classes/ElggSite.php
fix(i18n): fallback to site language before English
chore(groups): fixed dropdown content for owner transfer
feat(discussion): replies have been moved to comments
…er-menu

chore(developers): restore entity_explorer menu item
feat(forms): form_vars and body_vars are now available in the footer
jdalsem and others added 28 commits December 8, 2017 16:48
All usages have been replaced by explicit `order_by` values.

Fixes Elgg#11460

BREAKING CHANGE:
`reverse_order_by` in $options is ignored.
chore(sql): removes reverse_order_by query option
chore(groups): removed old upgrade file
fix(views): clean up of class attribute usage
feat(tests): travis now also test on PHP 7.2
chore(i18n): plugin translations have been cleaned
Implements a new theme

BREAKING CHANGE
Most of the CSS has been rewritten, which will probably affect plugins
and themes. Plugins will need to adapt to new styling guidelines.

Fixes Elgg#11134
Fixes Elgg#10201
Fixes Elgg#7658
Fixes Elgg#10857
Fixes Elgg#10316
Fixes Elgg#4762
Fixes Elgg#11245
Fixes Elgg#6912
chore(search): updated usage of elgg_search in plugins
chore(tests): report code coverage to scrutinizer
feat(theme): improve the design
into friends_acl_last_time

Conflicts:
	docs/appendix/upgrade-notes/2.x-to-3.0.rst
@jdalsem
Copy link
Member Author

jdalsem commented Dec 12, 2017

grr... going to redo this

@jdalsem jdalsem closed this Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants