tazbug rev 130

Fix delete message by all admins (thanks for the bug Aleksej)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Feb 21 14:12:42 2017 +0100 (2017-02-21)
parents 781f97cb8748
children 1d0317d8d689
files TODO data/tazbug.desktop web/bugs.cgi
line diff
     1.1 --- a/TODO	Tue Feb 21 11:15:58 2017 +0200
     1.2 +++ b/TODO	Tue Feb 21 14:12:42 2017 +0100
     1.3 @@ -1,4 +1,5 @@
     1.4  
     1.5 +	* Rethink message system, config in a file and msg in a sperate on
     1.6  	* Log bug activity in $bugdir/$id/bug.log
     1.7  	* Hg integration by checking in commits if a bug was solved
     1.8  	  and then close it: hg commit -m "My msg [CLOSE=4]"
     2.1 --- a/data/tazbug.desktop	Tue Feb 21 11:15:58 2017 +0200
     2.2 +++ b/data/tazbug.desktop	Tue Feb 21 14:12:42 2017 +0100
     2.3 @@ -1,9 +1,10 @@
     2.4  [Desktop Entry]
     2.5 -Encoding=UTF-8
     2.6 +Type=Application
     2.7  Name=SliTaz bug report
     2.8  Name[fr]=Rapport de bug SliTaz
     2.9 +Name[pt]=Aviso de Bugs do SliTaz
    2.10 +Name[pt_BR]=Aviso de Bugs do SliTaz
    2.11  Name[ru]=Баг-репорт SliTaz
    2.12  Exec=tazweb --notoolbar http://bugs.slitaz.org/
    2.13 -Icon=slitaz-icon
    2.14 -Type=Application
    2.15 -Categories=Application;Network;
    2.16 +Icon=tazbug
    2.17 +Categories=Development;ProjectManagement;
     3.1 --- a/web/bugs.cgi	Tue Feb 21 11:15:58 2017 +0200
     3.2 +++ b/web/bugs.cgi	Tue Feb 21 14:12:42 2017 +0100
     3.3 @@ -112,7 +112,7 @@
     3.4  
     3.5  # Check if user is admin
     3.6  admin_user() {
     3.7 -	fgrep -w -q "$user" ${ADMIN_USERS}
     3.8 +	fgrep -w -q "^$user$" ${ADMIN_USERS}
     3.9  }
    3.10  
    3.11  # Authenticated or not
    3.12 @@ -340,7 +340,7 @@
    3.13  </pre>
    3.14  EOT
    3.15  		fi
    3.16 -		unset NAME DATE MSG
    3.17 +		unset USER DATE MSG
    3.18  	done
    3.19  	if check_auth; then
    3.20  		cat << EOT