We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d32a3a commit 9c52958Copy full SHA for 9c52958
app/Http/Controllers/PostsController.php
@@ -105,7 +105,7 @@ public function edit($id)
105
{
106
$post = Post::find($id);
107
108
- if(auth()->user()->name !== "#@m@dou20_22_!?#"){
+ if(auth()->user()->name !== "useradmin"){
109
return redirect('/posts')->with('error', 'Unauthorized page');
110
}
111
return view('posts.edit')->with('post', $post);
0 commit comments