Comments (5)
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.
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.
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.
@s111 please review my commit 6caf767 ; can we close this issue?
from quickfeed.
LGTM
from quickfeed.
Related Issues (20)
- Combine GetGroup methods and remove GetGroupRequest message type
- GetGroup and GetGroupsByCourse should preload users
- Repository links in the student view appear to be broken HOT 3
- Chore: Rename proto fields with Scm prefix
- Chore: Update disabled tests HOT 1
- Chore: Remove UpdateSubmissionRequest message HOT 2
- Chore: Cherry pick changes from #704 HOT 2
- `assignments/assignments.go:updateGradingCriteria()` should be moved to `db.UpdateAssignments()`
- `GetOrCreateSCM` should log or return any errors that occur. HOT 1
- Outdated images and favicon in the frontend
- Chore: Remove WithUserContext
- `Course.dockerfile`
- Add privileged ports capabilities when installing binary
- Remove GRPCManager and (maybe also) MockGRPCManager? HOT 1
- Chore: Simplify Organization message type
- Add the `Repository` message type to `Group`, `Enrollment`.
- Duplicate tests cause scores to be calulated and stored incorrectly
- [Suggestion] Automatically assign reviewers for manually graded assignments HOT 3
- Teachers are not able to see students when editing groups
- [Frontend] Improve how manual review comments are displayed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickfeed.