Branch: Tag:

2016-02-12

2016-02-12 11:46:42 by Henrik Grubbström (Grubba) <grubba@grubba.org>

ConfigIF: Fixed some redirect issues.

Redirect to the root of the Sites tab if no configuration is selected.

Fixes a redirect loop and a related backtrace.

905:    if( !config_perm( "Add Module" ) )    return LOCALE(226, "Permission denied");    -  if( id->variables->module_to_add && -  id->variables->config ) +  if (!id->variables->config) { +  return Roxen.http_redirect("/sites/", id); +  } +  +  if( id->variables->module_to_add )    return do_it( id );       Configuration conf;