Skip to content
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

User_type Enhancement #95

Open
offsecginger opened this issue Aug 5, 2017 · 0 comments
Open

User_type Enhancement #95

offsecginger opened this issue Aug 5, 2017 · 0 comments

Comments

@offsecginger
Copy link
Contributor

Nakiami,

First of all, I'm an avid user of Mellivora. I've kind of hacked my way into this enhancement and I'd love it to be properly added to the baseline.

What I've done is add to the categories table in mysql a "user_type" column in which I've added drop downs to the edit and new category forms that are linked to the user_type table in mysql. I've also added code to scores.php and challenges.php to only show categories based on what user type is logged in.

The reason I did this is to allow the CTF I'm building to have a "learners" section at the same time as a competition section, without the categories getting too cluttered. Like I said, I hacked my way around this, and I know that there's a way to get around what I've done regardless of the user_type logged in, but maybe a more professional look at this implementation would be more effective. Let me know your thoughts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants