Fixed NULL return of panel
Updated to conform to ADD-DEFAULT-PERMISSION interface change