Alexander Nicolaysen Sørnes : screenshot : Show delete link in 'Browse Screenshots' for users with permission
Alexander Nicolaysen Sørnes
asornes at winehq.org
Thu Aug 13 08:58:50 CDT 2009
Module: appdb
Branch: master
Commit: 5a9e078df620ab1f29ace3f9f6f78ced726c762b
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=5a9e078df620ab1f29ace3f9f6f78ced726c762b
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Thu Aug 13 15:58:14 2009 +0200
screenshot: Show delete link in 'Browse Screenshots' for users with permission
---
include/screenshot.php | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/screenshot.php b/include/screenshot.php
index 91378fc..a48b375 100644
--- a/include/screenshot.php
+++ b/include/screenshot.php
@@ -659,6 +659,12 @@ class screenshot
echo "<br>[".$oVersion->objectMakeLink()."]";
+ if($oScreenshot->canEdit())
+ {
+ $oM = new objectManager('screenshot');
+ echo '<br />[<a href="'.$oM->makeUrl('delete', $oScreenshot->objectGetId(), 'Delete Screenshot').'">Delete</a>]';
+ }
+
echo "</div></td>\n";
// end row if counter of 3
if($i % 3 == 0)
More information about the wine-cvs
mailing list