Skip to content

add method to user-backend to check if allowed to update email address - #19053

Closed
georgehrke wants to merge 1 commit into
masterfrom
fix_14127
Closed

georgehrke wants to merge 1 commit into
masterfrom
fix_14127

Conversation

@georgehrke

Copy link
Copy Markdown
Contributor

fixes #14127

please review @PVince81 @MorrisJobke

@karlitschek

Copy link
Copy Markdown
Contributor

makes sense 👍

@DeepDiver1975 DeepDiver1975 added this to the 8.2-current milestone Sep 15, 2015
Comment thread lib/public/iuser.php

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Will this break existing backends that might not implement it ? (ex: in third party apps that might implement this interface)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@blizzz Was this the case when you added public function canChangeAvatar();?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@georgehrke I did not add it into an interface. This was added by @icewind1991. Anyway, every backend will break, which implements IUser and does not adopt in time to this change.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

So, yes, it'll break user backends, which for whatever reason implement iUser, but it's just a matter of implementing a single method that returns a boolean, so I don't think it's a big deal, as long as we put a big note into the changelog.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See all the broken update complaints?

What about introducing and checken for a new Interface? I think we need to switch thereto anyway in Users to be able to further extend it with optional capabilities.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One approach would be to create a new interface (V2) with the new method, and make that interface extend this one. So "user backend v2" would implement the new interface.

Another possible alternative but possibly less popular is to use traits ? @icewind1991

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Accounts table ticket is here: #21282

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since that is 9.1 let's move that as well here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

… or we we want to close this one completely?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems there won't be an account table for 9.1 after all.

We should move forward with this or close it. No point in leaving a PR open for that long.

@MorrisJobke

Copy link
Copy Markdown
Contributor

Moved to 9.0 as per #14127 (comment)

@lock

lock Bot commented Aug 5, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admins can't edit mails of users if allow_user_to_change_display_name is set to false

8 participants