summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
Diffstat (limited to 'web/html')
-rw-r--r--web/html/packages.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index 95b59798..85ab6b75 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -171,7 +171,10 @@ if (isset($_REQUEST["do_Flag"])) {
$q = "UPDATE Packages ";
$q.= "SET ".$field." = 0 ";
$q.= "WHERE ID IN (" . $disown . ") ";
- $q.= "AND ".$field." = ".uid_from_sid($_COOKIE["AURSID"]);
+ # If a user is a TU or dev they can disown any package
+ if ($atype == "User") {
+ $q.= "AND ".$field." = ".uid_from_sid($_COOKIE["AURSID"]);
+ }
db_query($q, $dbh);
}