# HG changeset patch # User Christophe Lincoln # Date 1487682762 -3600 # Node ID 3033df849ec3b9c40c53bea34ae1cf77016d8dac # Parent 781f97cb8748b4db78c5ad010ca94e137cf65b61 Fix delete message by all admins (thanks for the bug Aleksej) diff -r 781f97cb8748 -r 3033df849ec3 TODO --- a/TODO Tue Feb 21 11:15:58 2017 +0200 +++ b/TODO Tue Feb 21 14:12:42 2017 +0100 @@ -1,4 +1,5 @@ + * Rethink message system, config in a file and msg in a sperate on * Log bug activity in $bugdir/$id/bug.log * Hg integration by checking in commits if a bug was solved and then close it: hg commit -m "My msg [CLOSE=4]" diff -r 781f97cb8748 -r 3033df849ec3 data/tazbug.desktop --- a/data/tazbug.desktop Tue Feb 21 11:15:58 2017 +0200 +++ b/data/tazbug.desktop Tue Feb 21 14:12:42 2017 +0100 @@ -1,9 +1,10 @@ [Desktop Entry] -Encoding=UTF-8 +Type=Application Name=SliTaz bug report Name[fr]=Rapport de bug SliTaz +Name[pt]=Aviso de Bugs do SliTaz +Name[pt_BR]=Aviso de Bugs do SliTaz Name[ru]=Баг-репорт SliTaz Exec=tazweb --notoolbar http://bugs.slitaz.org/ -Icon=slitaz-icon -Type=Application -Categories=Application;Network; +Icon=tazbug +Categories=Development;ProjectManagement; diff -r 781f97cb8748 -r 3033df849ec3 web/bugs.cgi --- a/web/bugs.cgi Tue Feb 21 11:15:58 2017 +0200 +++ b/web/bugs.cgi Tue Feb 21 14:12:42 2017 +0100 @@ -112,7 +112,7 @@ # Check if user is admin admin_user() { - fgrep -w -q "$user" ${ADMIN_USERS} + fgrep -w -q "^$user$" ${ADMIN_USERS} } # Authenticated or not @@ -340,7 +340,7 @@ EOT fi - unset NAME DATE MSG + unset USER DATE MSG done if check_auth; then cat << EOT