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

auth #18

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

auth #18

wants to merge 9 commits into from

Conversation

Samuel-Lubliner
Copy link

No description provided.

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

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

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

Copy link

@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