question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Existing sections in user group section picker should be preselected

See original GitHub issue

I noticed while editing sections for “Administrators” user group after removing media and wanted to re-add media section, the existing sections wasn’t preselected, which they used to be. Instead the list was cleared after selecting “Media” and only “Media” was added to sections list.

I was a bit too fast to save, so I was logged out. When logging back in I only had access to media section. Tested with latest changes in v8/contrib branch.

image

It’s quite unfortunate that you as an administrator is able to lock yourself out of the system 🙈

Here is a demonstration - if saving after these steps I can’t access these sections again via UI.

2020-07-27_19-51-30

I think the super user (user id -1) should always have access to users section and should not be able to remove this.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nul800sebastiaancommented, Jul 28, 2020

I would love for people to VERY MUCH limit the “super user”/admins at all times, for security reasons. So if something happens by mistakes, it’s okay (to me) that it’s painful to restore access. 🙂

0reactions
bjarnefcommented, Jul 28, 2020

@nul800sebastiaan regarding the other issue mentioned here, where you are able to remove sections and save, where you via the UI can’t get access again (especially if removing “users” section). Maybe “remove” button shouldn’t been available to the super user (-1). But other users with access to “admin” group can remove sections (and potentially remove access to “users” for super user).

Not sure what the best approach is to prevent this? Maybe “users” section should always be available to “admin” group and not possible to remove this under “admin” group?

Read more comments on GitHub >

github_iconTop Results From Across the Web

People picker component in Microsoft Graph Toolkit
You can use the mgt-people-picker web component to search for people and render the list of results from Microsoft Graph in a dropdown....
Read more >
Section schema - Shopify.dev
Each section can have only a single {% schema %} tag, which must contain only valid JSON using the attributes listed in Content....
Read more >
Sections - Shopify.dev
Sections are Liquid files that allow you to create reusable modules of content that can be customized by merchants. They can also include...
Read more >
Configure a custom field
The user picker will only show users that are in the groups and roles selected. Click Save.
Read more >
Configuring a Participant Picker in JCA - Windchill
Use this to set the default Participant type specified in the tag attribute participantType as the only supported type. This takes value true/false....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found