drlippman/IMathAS

Admin/Instructor Privileges

Closed this issue · 9 comments

A new install done by following the installation steps given in the README.md doesn't give the Admin Page section on login:

Screenshot_2020-10-02_16-41-36

That is, logging-in as root after the default install doesn't give teacher privileges to root.

Odd. The database insert in setupdb.php has the rights hardcoded as Admin (100), so I'm not sure why it's not working for you. Can you manually check the database and see what the recorded "rights" value is for that user?

For root, the rights is encoded as 100; specialrights as 112.

Very odd. That's the right value. Not sure what's going on.

In addition, the user's ID doesn't appear in the welcome message ...

Yes, you definitely have some weird issue going on, but I have no idea what it is. I haven't seen this issue myself when doing a fresh install. Check your error logs and see if they can shed any light on it.

The same result was obtained when I cloned the repository into a local directory (also occured when a new instructor account is created using newinstructor.php). I am attaching a setupdb.php install log
(IMathAS-init-2020Oct03-master.pdf) in the hope that it contains some hints as to what may be causing the problem. Many thanks, by the way, for looking into this.

Just git pull-ed a few hours ago and everything seems to be fine now. 😃

Screenshot_2020-10-03_23-53-15

The setupdb.php install log is attached: IMathAS-init-2020Oct03-master-2.pdf.

Many thanks! ❤️

May we now close this?

Looks like the problem was that the data migrations failed partway through when you did the first install. Glad you were able to resolve it :)