Last active
September 18, 2023 14:27
-
-
Save francium-lupe/b2ae0dcaef833c598e18acc12d11b19f to your computer and use it in GitHub Desktop.
authorization fundamentals - venn diagram
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def update_post(user, post) | |
if not user.admin? | |
raise Forbidden, "you must be an admin to update this post" | |
end | |
... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment