История коммитов
4473 коммита
refactor: ask ProfileLinksInterface wherever a profile link is drawn
The forum, the downloads and UserProperties each repeated the check that hides a profile from a guest. They now take the answer from the one service; whether a member is linked to their own profile stays decided where it was.
fix: show a guest the name of an author without a link to the closed profile
The guestbook, the comments, the visitors online, the community lists, the author of a news article, the uploader of a library article, the forum search and the curators of a topic led a guest to a profile that refuses them. They now ask ProfileLinksInterface and draw the bare name when there is nothing to open.
fix(profile): refuse a guest with a 403 instead of a 404
A profile is open to members only. A guest following a link to one is told so and offered the login form; the refusal page shows the login button to every visitor who is not signed in.
feat: decide in one place where the name of an author leads
ProfileLinksInterface answers whether the visitor may open a profile and gives its address, or null when the profile is closed to them or the profile module is off. Templates get it as profile_url(). It replaces PublicProfileLinks of the admin panel.
fix(album): hide the albums from guests in the menu and the sitemap
Every page of the module answers a guest with a 404, so the menu item and the sitemap entry led nowhere.
fix(console): boot Eloquent before running a command
Configuring the capsule moves out of PdoFactory into CapsuleFactory, which does not connect. The console boots it for every command, so the ones that work through models alone, such as auth:sync-roles, no longer fail with connection() on null, while the commands that never query still run without a database.
fix: keep clearing the cache when the running site writes into it
A directory that is refilled or removed by concurrent requests is skipped instead of failing the command; real failures now report the reason given by PHP.
fix(auth): confirm the e-mail of an account created through an external provider
An address the provider does not vouch for is confirmed by mail, as on the registration form, and one it does vouch for is taken from the identity rather than from the form. Signing in through a provider refuses an unconfirmed or unapproved account the way the password sign-in does.