mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 19:50:40 -05:00
Apply fixes from StyleCI
This commit is contained in:
@@ -72,7 +72,7 @@ class TopicController extends Controller
|
||||
$firstPost = Post::with('tips')->where('topic_id', '=', $topic->id)->first();
|
||||
|
||||
// The user can post a topic here ?
|
||||
if (!$category->getPermission()->read_topic) {
|
||||
if (! $category->getPermission()->read_topic) {
|
||||
// Redirect him to the forum index
|
||||
return \to_route('forums.index')
|
||||
->withErrors('You Do Not Have Access To Read This Topic!');
|
||||
@@ -100,7 +100,7 @@ class TopicController extends Controller
|
||||
$category = Forum::findOrFail($id);
|
||||
|
||||
// The user has the right to create a topic here?
|
||||
if (!$category->getPermission()->start_topic) {
|
||||
if (! $category->getPermission()->start_topic) {
|
||||
return \to_route('forums.index')
|
||||
->withErrors('You Cannot Start A New Topic Here!');
|
||||
}
|
||||
@@ -122,7 +122,7 @@ class TopicController extends Controller
|
||||
$category = Forum::findOrFail($id);
|
||||
|
||||
// The user has the right to create a topic here?
|
||||
if (!$category->getPermission()->start_topic) {
|
||||
if (! $category->getPermission()->start_topic) {
|
||||
return \to_route('forums.index')
|
||||
->withErrors('You Cannot Start A New Topic Here!');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user