[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [websites/paste-kde-org] app/controllers: Merging #82: Fix owner check for a paste
From:       Sayak Banerjee <sayakb () kde ! org>
Date:       2014-02-01 0:22:44
Message-ID: E1W9OM8-0002sr-FW () scm ! kde ! org
[Download RAW message or body]

Git commit 5ae170d21ef2ebbaf60af49b447ab83619fd0e9e by Sayak Banerjee.
Committed on 01/02/2014 at 00:22.
Pushed by sayakb into branch 'master'.

Merging #82: Fix owner check for a paste

M  +1    -1    app/controllers/ShowController.php

http://commits.kde.org/websites/paste-kde-org/5ae170d21ef2ebbaf60af49b447ab83619fd0e9e

diff --git a/app/controllers/ShowController.php b/app/controllers/ShowController.php
index 5e557d9..836473e 100755
--- a/app/controllers/ShowController.php
+++ b/app/controllers/ShowController.php
@@ -46,7 +46,7 @@ class ShowController extends BaseController {
 		}
 
 		// Check if the logged in user is the owner of the paste
-		$owner = Auth::access($paste->authorid);
+		$owner = Auth::access($paste->author_id);
 
 		// We do not make password prompt mandatory for owners
 		if ( ! $owner)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic