Module: appdb
Branch: master
Commit: dd8399a861d665a0b85b39c93c78e18a4e8eea6e
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=dd8399a861d665a0b85b39c9…
Author: Alexander Nicolaysen Sørnes <alexander(a)linux-xqqm.(none)>
Date: Sun Nov 22 04:14:08 2009 +0100
version: Only show some filter optiosn for admins, as they have no effect for others
---
include/version_queue.php | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/version_queue.php b/include/version_queue.php
index 0be7ba4..2d1ee55 100644
--- a/include/version_queue.php
+++ b/include/version_queue.php
@@ -265,6 +265,11 @@ class version_queue
public function objectGetFilterInfo()
{
$oFilter = new FilterInterface();
+
+ /* The following filters are only useful for admins */
+ if(!$_SESSION['current']->hasPriv('admin'))
+ return null;
+
$oFilter->AddFilterInfo('onlyWithoutMaintainers', 'Only show versions without maintainers', array(FILTER_OPTION_BOOL), FILTER_VALUES_OPTION_BOOL, array('false','true'));
return $oFilter;
}
Module: appdb
Branch: master
Commit: 61439a79ce6af01e66fd578793c80a864f370f75
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=61439a79ce6af01e66fd5787…
Author: Alexander Nicolaysen Sørnes <alexander(a)linux-xqqm.(none)>
Date: Sun Nov 22 04:07:50 2009 +0100
vendor: If an admin adds a duplicate vendor, unqueue matching entry if it exists
---
include/vendor.php | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/vendor.php b/include/vendor.php
index e808215..820741b 100644
--- a/include/vendor.php
+++ b/include/vendor.php
@@ -76,6 +76,9 @@ class Vendor {
{
$this->vendor($oRow->vendorId);
+ if(!$this->mustBeQueued())
+ $this->unQueue();
+
/* Even though we did not create a new vendor, the caller is provided
with an id and can proceed as normal, so we return TRUE */
return TRUE;