Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lang-fix #132

Open
wants to merge 1 commit into
base: 4.0
Choose a base branch
from
Open

lang-fix #132

wants to merge 1 commit into from

Conversation

emrullahardc
Copy link
Contributor

No description provided.

Copy link

sonarcloud bot commented Dec 15, 2023

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@@ -661,7 +661,11 @@ public function view($seo, $id = null)
$adv = $this->adv_repository->getListItemAdv($id);
}

if ($adv and ((auth()->user() and auth()->user()->hasRole('admin')) or ((!$adv->expired() && $adv->getStatus() === 'approved') || $adv->created_by_id === \auth()->id()))) {
if (!$adv){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use redirect whenever possible. Instead of pressing echo when there is no ad, let's redirect abort(404);.

@fatihalp fatihalp changed the base branch from master to 4.0 June 29, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants