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

Subsumes doesn't work when given user-minted privileges #4

Open
alejandrorusso opened this issue Jun 26, 2015 · 0 comments
Open

Subsumes doesn't work when given user-minted privileges #4

alejandrorusso opened this issue Jun 26, 2015 · 0 comments
Labels

Comments

@alejandrorusso
Copy link

The method subsumes for label objects does not return an appropriated answer when giving a user-minted privilege.

var p1 = new FreshPrivilege() ; 
var p2 = new FreshPrivilege() ;
var land = p1.asLabel.and(p2.asLabel) ; 
// The next instruction should return true but it returns false 
p1.asLabel.subsumes(land, p2) ;

However, it works if we write a similar code but using regular labels (and privileges),

var l2  = new Label ("http://bob.com:9090") ; 
var land = l2.and(COWL.privileges.asLabel) ; 
// The next instruction returns true
l2.subsumes(land,COWL.privileges) ; 
@alejandrorusso alejandrorusso changed the title Subsumes doesn't work when given user-minted privilege Subsumes doesn't work when given user-minted privileges Jun 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant