Skip to content

Add authorization#4

Open
armstrca wants to merge 5 commits intoappdev-projects:mainfrom
armstrca:add-authorization
Open

Add authorization#4
armstrca wants to merge 5 commits intoappdev-projects:mainfrom
armstrca:add-authorization

Conversation

@armstrca
Copy link
Copy Markdown
Collaborator

No description provided.

@@ -1,5 +1,7 @@
class PhotosController < ApplicationController
before_action :set_photo, only: %i[ show edit update destroy ]
before_action :ensure_current_user_is_owner, only: [:destroy, :update, :edit]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

don't need this anymore since we're using pundit now.

@Dantexkilljoy
Copy link
Copy Markdown

Just make sure to change the path to your main

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