[AppDB] Allow users to see their queued screenshots

Rosanne DiMesio dimesio at earthlink.net
Fri Jun 16 13:42:20 CDT 2017


Fixes bug 28032.

Signed-off-by: Rosanne DiMesio <dimesio at earthlink.net>
---
 include/user.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/user.php b/include/user.php
index 80cd9f4..2d62ea5 100644
--- a/include/user.php
+++ b/include/user.php
@@ -620,7 +620,8 @@ class User {
          if(!$oScreenshot->bQueued ||
             ($oScreenshot->bQueued && ($this->hasPriv("admin") ||
                                        $this->isMaintainer($oScreenshot->iVersionId) ||
-                                       $this->isSuperMaintainer($oScreenshot->iAppId))))
+                                       $this->isSuperMaintainer($oScreenshot->iAppId) ||
+                                       $this->iUserId == $oScreenshot->iSubmitterId)))
              return true;
 
          return false;
-- 
2.12.3




More information about the wine-patches mailing list