User profile link is not available when not logged in #134

Closed
opened 2019-09-01 14:32:33 +01:00 by aheathershaw · 1 comment
Owner

The link to a user's public profile page (beneath an album) is not available to anonymous users, even if the user has enabled their profile page.

The page can be accessed directly.

The link to a user's public profile page (beneath an album) is not available to anonymous users, even if the user has enabled their profile page. The page can be accessed directly.
aheathershaw added this to the Version 2.2.0-beta.2 milestone 2019-09-01 14:32:33 +01:00
aheathershaw self-assigned this 2019-09-01 14:32:33 +01:00
aheathershaw added the
bug
label 2019-09-01 14:32:33 +01:00
Author
Owner

This is due to the use of "can" in the view, which doesn't run any checks when no user is logged in.

By contract, the statistics page does the following, which accounts for our pseudo-anonymous user:

\App\User::currentOrAnonymous()->can('statistics.public-access')

This is due to the use of "can" in the view, which doesn't run any checks when no user is logged in. By contract, the statistics page does the following, which accounts for our pseudo-anonymous user: `\App\User::currentOrAnonymous()->can('statistics.public-access')`
Sign in to join this conversation.
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: aheathershaw/blue-twilight#134
No description provided.