[x-wrt] r4817 committed - Fix users not being able to review/save changes.

0 views
Skip to first unread message

codesite...@google.com

unread,
Aug 19, 2009, 4:14:50 AM8/19/09
to x-wrt-...@googlegroups.com
Revision: 4817
Author: kemen04
Date: Wed Aug 19 01:14:13 2009
Log: Fix users not being able to review/save changes.
http://code.google.com/p/x-wrt/source/detail?r=4817

Modified:
/trunk/package/webif/files/usr/lib/webif/webif.sh

=======================================
--- /trunk/package/webif/files/usr/lib/webif/webif.sh Wed Mar 25 09:57:08
2009
+++ /trunk/package/webif/files/usr/lib/webif/webif.sh Wed Aug 19 01:14:13
2009
@@ -250,9 +250,11 @@
}
if [ "$REMOTE_USER" != "root" -a "$REMOTE_USER" != "admin" ]; then
config_load webif_access_control
- if [ "$1" != "Graphs" ]; then
+ if [ "$1" != "Graphs" -a "$2" != "" ]; then
webifform=`grep "##WEBIF:name:${1}:[0-9][0-9][0-9]:${2}"
/www/cgi-bin/webif/*.sh |cut -d':' -f5`
config_get_bool permission "$REMOTE_USER" "${1}_${webifform}" 0
+ elif [ "$2" != "" ]; then
+ permission="1"
else
config_get_bool permission "$REMOTE_USER" "Graphs" 0
fi

Reply all
Reply to author
Forward
0 new messages