Narzerus/angular-permission — pull request #22 by ankri (2014-11-19 06:40:54+00:00)
Title: Testfix for both new and old version of ui-router

If you want to make the *ui-router* version dynamic again in the *bower.json* this is the text fix you need so that the test passes for both versions. I should have made the test compatible with both versions from the first place.

This is the new test

``` javascript
PermissionProvider.defineRole('withParams', function(params) {
if(params.isset && angular.isString(params.isset)) {
return params.isset === 'true';
}
else {
return params.isset === true;
}
});
```

The *angular.isString* part is for the newest version and the other one for the *0.2.11*

Ignore this pull request if you want to make the ui-router dependency static.