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

Superuser has no permission #65

Open
ShipraShalini opened this issue Aug 11, 2016 · 8 comments
Open

Superuser has no permission #65

ShipraShalini opened this issue Aug 11, 2016 · 8 comments

Comments

@ShipraShalini
Copy link

ShipraShalini commented Aug 11, 2016

When I login to django admin with super user I get the following message.

screen shot 2016-08-11 at 6 46 47 pm

The user_permissions array is also empty in mongodb.

{
"_id": ObjectId("57dc5db686w5c77e351e2e1c"),
"_cls": "User.Member",
"email": "[email protected]",
"password": "pbkdf2_sha256$24C000$7vNWGxjVxbr$LvauNaXnjlwPrGdG+3b1Cz04vpoW7f0kxV/0nkW6Abg=",
"is_active": true,
"is_superuser": true,
"last_login": ISODate("2016-08-11T12:03:58.895Z"),
"date_joined": ISODate("2016-08-11T11:12:53.376Z"),
"user_permissions": [],
"is_staff": true,
"username": "djadmin"
}

Is there anyway to fix this?

@last-partizan
Copy link
Contributor

may be you don't configured any apps? Take a look at example app.

Btw, admin part of the project is not ready yet, if you want to use it: be prepared to fix everything you need.

@ShipraShalini
Copy link
Author

I have configured apps according to the example app.

I also noticed that there's no permissions collection in mongodb. The code seems fine, I have no clue why it's not being created.

@last-partizan
Copy link
Contributor

I have no clue too.

@maxperei
Copy link

hi @ShipraShalini, same problem here, you still have no clue ?

maxperei pushed a commit to maxperei/PrimoPrim that referenced this issue Apr 23, 2017
@Lucas63
Copy link

Lucas63 commented Sep 9, 2017

Hi to all! This problem is still present. Is someone knows how to fix it?

@last-partizan
Copy link
Contributor

Hi, check it yourself. Last time i tried to use admin it was working.

@Lucas63
Copy link

Lucas63 commented Sep 10, 2017

@last-partizan, i have configure my app as in example provided in this repostirory. I have created superuser successfully, but when i login in admin panel, i see that i have no permissions(like on screen above)

@last-partizan
Copy link
Contributor

@Lucas63 are you sure you using correct module in urls? in the example we're using mongoadmin, which is different from default django.contrib.admin module

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

No branches or pull requests

4 participants