Opened 10 years ago

Closed 10 years ago

#1294 closed defect (fixed)

Wrong Monlevel selected in Web

Reported by: crazyiven Owned by: alno
Priority: major Component: Webinterface
Severity: medium Keywords:
Cc: Sensitive: no



3960 (and i think all following)

Issue Description

The Webif selects "Monlevel 2" if oscam.user has monlevel = 0 or non monlevel set. If you select "Monlevel 0" by hand in Webif and save it, the oscam.user file has no monlevel set for the user account. But a new edit of the user selects "Monlevel 2" again. So if you dont check and save, the user gehts monlevel 2 instead of 0!

When the issue occurs

Everytime you edit a user with no monlevel oder monlevel = 0, Webif preselects "Monlevel 2"

Change History (5)

comment:1 by alno, 10 years ago

what happen if you set the global monlevel to '0' ?

comment:2 by crazyiven, 10 years ago

My oscam.conf has no monlevel set (no [monitor] entry), so its 0 ... but Webif preselects "Monlevel 2" ... so same probleme here.

Even if i save monlevel 0 (no port or other settings, dont use monitor), the oscam.conf still has no [monitor] entry and WebIf preselects 2

comment:3 by Deas, 10 years ago

Resolution: invalid
Status: newclosed

you should read the manual...

2 = all procs, but viewing only, default

so nothing set, default values apply...

comment:4 by crazyiven, 10 years ago

Resolution: invalid
Status: closedreopened

Sorry i missed the default value for monlevel, but this make this bug even worse:

put monlevel = 0 into useraccount @ oscam.user
=> the WebIf preselects monlevel 2 instead of monlevel 0

save monlevel = 0 with webif
=> webif deletes the monlevel = eintrie in oscam.user instead of setting monlevel = 0 (because 2 is default, not zero)

save monlevel = 2 (default value) with webif
=> webif puts monlevel = 2 in oscma.user ... but shouldn't, because monlevel = 2 is default?

comment:5 by Admin, 10 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.