-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to edit or remove instructor records #8
Comments
I think there is two possible formats of storing information about who can edit or remove instructor records at
{
"first_name": "Pavel",
"last_name": "Serikov",
"gmail": "[email protected]",
"phone_number": "+79885851900",
"telegram_id": "@serikoff",
"calendars": [ "Lasersaur", "Dobot"],
"is_root": 1
},
"managers": [
{
"first_name": "Pavel",
"last_name": "Serikov",
"gmail": "[email protected]", // is gmail field needed for manager ?
"phone_number": "+79885851900", //
"telegram_id": "@serikoff", //
}, However in case of using first format we can add manager as instructor with an empty calendars array. "instructors": [
{
"first_name": "Pavel",
"last_name": "Serikov",
"gmail": "[email protected]",
"phone_number": "+79885851900",
"telegram_id": "@serikoff",
"calendars": [ ],
"is_root": 1
},
...
] I think first option is better. But maybe empty calendars list may affect on code. @denis-it, which option do you think is better? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: