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
notebook -- allow admin user to view any worksheet #3743
Comments
Attachment: sage-3743.patch.gz |
comment:2
REFEREE REPORT: You determine whether a user is an admin with
It would be better to determine whether a user is an admin by using the account_type() method of users. This is because a user with a username other than 'admin' can still be an admin; with the code you've written you would introduce a bug since suddenly certain admin-like things wouldn't work for such a user, but they should. |
comment:3
I started out using user_type but for whatever reason for user admin it was returning 'user' so to get the functionality working at all I used the current work around. |
comment:4
Attachment: sage-3743_2.patch.gz |
comment:5
Positive review |
comment:6
Merged both patches in Sage 3.1.alpha1 |
User "admin" will be able to go to hostname/users and click on any listed user and have complete access to that user's worksheets.
Component: notebook
Issue created by migration from https://trac.sagemath.org/ticket/3743
The text was updated successfully, but these errors were encountered: