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

Documentation v1.0 UserRoles data-models incorrect example #308

Open
olbliss opened this issue May 22, 2020 · 1 comment
Open

Documentation v1.0 UserRoles data-models incorrect example #308

olbliss opened this issue May 22, 2020 · 1 comment

Comments

@olbliss
Copy link

olbliss commented May 22, 2020

Documentation v1.0, “Optional Role and UserRoles data-models”, states users are assigned one or more roles by adding them to the User.roles property:
#Create 'user007' user with 'secret' and 'agent' roles

The documentation seems to be missing
user1.roles.append(Role(name='secret'))
user1.roles.append(Role(name='agent'))

Instead it shows the creation of an ‘Admin’ role.

@Chaostheorie
Copy link

The mentioned lines are from here:

# Create 'user007' user with 'secret' and 'agent' roles

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

2 participants