Skip to content

auth#18

Open
Samuel-Lubliner wants to merge 9 commits intoappdev-projects:mainfrom
Samuel-Lubliner:main
Open

auth#18
Samuel-Lubliner wants to merge 9 commits intoappdev-projects:mainfrom
Samuel-Lubliner:main

Conversation

@Samuel-Lubliner
Copy link
Copy Markdown

No description provided.

@Samuel-Lubliner Samuel-Lubliner changed the title limit routes, conditional views, before action auth Oct 31, 2023
@jsonh0
Copy link
Copy Markdown

jsonh0 commented Nov 3, 2023

Error when I tried to edit someone else's comment - Pundit::AuthorizationNotPerformedError at /comments/1/edit
CommentsController

Logged in as Alice and got an error when I click my own liked tab in profile -undefined method `liked?
Probably need something like this in photo policy.
def like?
user.present?
end

Can't edit/delete my own photo either

@Dantexkilljoy
Copy link
Copy Markdown

All good next time just make a branch for this so it pushes to your main.

Copy link
Copy Markdown

@hibbleD hibbleD left a comment

Choose a reason for hiding this comment

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

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants