Project

General

Profile

« Previous | Next » 

Revision a4d40f3e

Added by Marcos M 9 months ago

Pass correct argument when checking for RO user privilege

Fix #15282
Fix #15318
Fix #15908

View differences:

src/usr/local/www/interfaces_qinq.php
41 41
	 */
42 42
	phpsession_begin();
43 43
	$guiuser = getUserEntry($_SESSION['Username']);
44
	$read_only = (is_array($guiuser) && userHasPrivilege($guiuser, "user-config-readonly"));
44
	$read_only = (is_array($guiuser) && userHasPrivilege($guiuser['item'], "user-config-readonly"));
45 45
	phpsession_end();
46 46

  
47 47
	if ($read_only) {

Also available in: Unified diff