Skip to content

Commit 9c52958

Browse files
authored
Update PostsController.php
1 parent 3d32a3a commit 9c52958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/PostsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function edit($id)
105105
{
106106
$post = Post::find($id);
107107

108-
if(auth()->user()->name !== "#@m@dou20_22_!?#"){
108+
if(auth()->user()->name !== "useradmin"){
109109
return redirect('/posts')->with('error', 'Unauthorized page');
110110
}
111111
return view('posts.edit')->with('post', $post);

0 commit comments

Comments
 (0)