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.

The admin/superuser is not able to remove a collection owned by a regular user

See original GitHub issue

I’ve deployed an sregistry instance and created two users.

  1. The first user has been created by logging in the sregistry instance using the github authentication. After the user has been created, I’ve set the permissions for this user to admin and superuser using manage.py add_admin and manage.py add_superuser. On the Django administration site I can see that everything looks good.
  2. The second user I created from the Django administration site. It’s not an account to be used by a real user, there is no github account associated. This account is used by a Continuous Integration pipeline. Only the access token will be used to push singularity images to the sregistry instance.

A collection is automatically created when an image is pushed from the CI/CD pipeline. However, I noticed that the superuser/admin is not able to remove/modify a collection owned by this user.

Is this the intended behaviour, or is this a bug? Possibly related: Would you suggest this setup when there is a need for pushing images from a CI/CD pipeline that is not associated with a real user?

How would you suggest to modify (and remove) a collection, maybe from a shell in the docker instance running sregistry?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
vsochcommented, Sep 2, 2019

Awesome! I’ll merge, and you can update your branch with master, or wait (a little longer) for the automated build. Thanks again!

0reactions
RonaldEnsingcommented, Sep 2, 2019

I can confirm that #230 solves it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's the difference between staff, admin, superuser in django?
If logged in as a superuser, you have access to create, edit, and delete any object (models). You can create staff user using...
Read more >
How to Remove Collection Accounts from Your Credit Reports
Create a credit cleanup plan and learn how to remove paid collections from your credit report with this handy guide.
Read more >
How to Remove Collections from Your Credit Report - Money
You can remove collections from your credit report by disputing errors, goodwill letters, or using a credit repair agency.
Read more >
Managing users - Tanium Documentation
When you un-delete users who own content, you can delete or transfer ownership of that content. Un-delete one user at a time: From...
Read more >
How To Remove Collections From Your Credit Report - Forbes
Here, we'll walk you through the three steps you can take to remove collection accounts from your credit report.
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