Determine Correct User To Edit Posts - Django Blog #16 by codemy

View this thread on steempeak.com
· @codemy ·
$2.71
Determine Correct User To Edit Posts - Django Blog #16
https://www.youtube.com/watch?v=Y1Us5jVT07E

In this video I'll show you how to determine the correct user when editing blog posts.

Right now, anyone who is logged in can edit or delete a blog post.  That's no good!  We only want the person who created a post to be able to edit or delete it. 

So we need to figure out two things:
- who the current logged in user is
- who the author of the post is

Once we know those two things, we can compare the two to determine if the current logged in user is the same as the author.  If so, they can edit or delete the post. If not, they can't.

✅ Watch The Entire Django Blog Playlist
https://bit.ly/3bWN6wj

✅ Subscribe To My YouTube Channel:
http://bit.ly/2IGzvOR

▶️ See More At:
https://Codemy.com

✅ Join My Facebook Group:
http://bit.ly/2GFmOBz

▶️ Learn to Code at https://Codemy.com
Take $22 off with coupon code: youtube

✅ Buy a Codemy T-Shirt!
http://bit.ly/2VC9WUN
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 389 others
properties (23)
post_id85,916,421
authorcodemy
permlinkdetermine-correct-user-to-edit-posts-django-blog-16
categoryprogramming
json_metadata{"tags":["programming","coding","python","diy"],"image":["https:\/\/img.youtube.com\/vi\/Y1Us5jVT07E\/0.jpg"],"links":["https:\/\/www.youtube.com\/watch?v=Y1Us5jVT07E","https:\/\/bit.ly\/3bWN6wj","http:\/\/bit.ly\/2IGzvOR","https:\/\/Codemy.com","http:\/\/bit.ly\/2GFmOBz","http:\/\/bit.ly\/2VC9WUN"],"app":"steemit\/0.2","format":"markdown"}
created2020-05-06 17:02:09
last_update2020-05-06 17:02:09
depth0
children0
net_rshares8,564,477,782,393
last_payout2020-05-13 17:02:09
cashout_time1969-12-31 23:59:59
total_payout_value1.374 SBD
curator_payout_value1.336 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length920
author_reputation21,544,346,900,318
root_title"Determine Correct User To Edit Posts - Django Blog #16"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (453)