mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-24 22:06:43 +01:00
16 lines
210 B
Go
16 lines
210 B
Go
|
package db
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestProjectUsers_RoleCan(t *testing.T) {
|
||
|
if !ProjectManager.Can(CanManageProjectResources) {
|
||
|
t.Fatal()
|
||
|
}
|
||
|
|
||
|
if ProjectManager.Can(CanUpdateProject) {
|
||
|
t.Fatal()
|
||
|
}
|
||
|
}
|