Coder Social home page Coder Social logo

Set up admin automatically about quickfeed HOT 5 CLOSED

quickfeed avatar quickfeed commented on May 14, 2024
Set up admin automatically

from quickfeed.

Comments (5)

s111 avatar s111 commented on May 14, 2024

I think using agctl or just flipping the bool using sqlite3 is the best option. We could have the first user to register always be an admin. The only concern I have is the added complexity.

from quickfeed.

meling avatar meling commented on May 14, 2024

All teachers will be admin in the sense that they can create courses etc. The first user to be admin will be responsible for promoting other teachers (at least the first other teacher) to admin role. So User.ID=1 has no special meaning except always being admin. So in CreateUserFromRemoteIdentity we can simply set IsAdmin:=true for the first user. This does not add much complexity IMO. Am I missing something @s111?

from quickfeed.

s111 avatar s111 commented on May 14, 2024

No I don't think so, that's why I suggested having the first user always be an admin, as it's the least intrusive change.

from quickfeed.

meling avatar meling commented on May 14, 2024

@s111 please review my commit 6caf767 ; can we close this issue?

from quickfeed.

s111 avatar s111 commented on May 14, 2024

LGTM

from quickfeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.