Content
View differences
Updated by Jens Ulferts over 2 years ago
### Steps to reproduce
_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_
1. Have a user user
2. Have a work package
3. Create a `Member` for the user and the work package assigning a WorkPackageRole
`Member.create(entity: `Member.Create(entity: WorkPackage.first, project: WorkPackage.first.project, roles: [WorkPackageRole.first], principal: User.active.first)`
4. Go to the rails console
5. Fetch the roles the user has globally:
`Authorization.roles(User.active.first, nil)`
### What is the buggy behavior?
_Please describe the bug in as much detail as possible. Example:_
* The `WorkPackageRole` is returned
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. The `WorkPackageRole` should not be included in the list of global roles. Only roles in the project or globally should.
###
_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_
1. Have a user
2. Have a work package
3. Create a `Member` for the user and the work package assigning a WorkPackageRole
`Member.create(entity:
4. Go to the rails console
5. Fetch the roles the user has globally:
`Authorization.roles(User.active.first, nil)`
### What is the buggy behavior?
_Please describe the bug in as much detail as possible. Example:_
* The `WorkPackageRole` is returned
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. The `WorkPackageRole` should not be included in the list of global roles. Only roles in the project or globally should.
###