Skip to content

Commit

Permalink
Merge b4d28bb into d66f876
Browse files Browse the repository at this point in the history
  • Loading branch information
cemremengu committed Feb 20, 2019
2 parents d66f876 + b4d28bb commit 85e6e7a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ This condition is fulfilled by (we will cover the warden in the next section)
```go
var err = warden.IsAllowed(&ladon.Request{
// ...
Context: &ladon.Context{
Context: ladon.Context{
"some-arbitrary-key": "the-value-should-be-this",
},
}
Expand All @@ -300,7 +300,7 @@ but not by
```go
var err = warden.IsAllowed(&ladon.Request{
// ...
Context: &ladon.Context{
Context: ladon.Context{
"some-arbitrary-key": "some other value",
},
}
Expand All @@ -311,7 +311,7 @@ and neither by:
```go
var err = warden.IsAllowed(&ladon.Request{
// ...
Context: &ladon.Context{
Context: ladon.Context{
"same value but other key": "the-value-should-be-this",
},
}
Expand Down Expand Up @@ -371,7 +371,7 @@ and would match in the following case:
```go
var err = warden.IsAllowed(&ladon.Request{
// ...
Context: &ladon.Context{
Context: ladon.Context{
"some-arbitrary-key": "the-value-should-be-this",
},
}
Expand All @@ -395,7 +395,7 @@ and would match in the following case:
```go
var err = warden.IsAllowed(&ladon.Request{
// ...
Context: &ladon.Context{
Context: ladon.Context{
"some-arbitrary-key": true,
},
})
Expand Down Expand Up @@ -426,7 +426,7 @@ and would match in the following case:
```go
var err = warden.IsAllowed(&ladon.Request{
// ...
Context: &ladon.Context{
Context: ladon.Context{
"some-arbitrary-key": "regex-pattern-here111"
}
}
Expand All @@ -451,7 +451,7 @@ and would match
var err = warden.IsAllowed(&ladon.Request{
// ...
Subject: "peter",
Context: &ladon.Context{
Context: ladon.Context{
"some-arbitrary-key": "peter",
},
}
Expand All @@ -463,7 +463,7 @@ but not:
var err = warden.IsAllowed(&ladon.Request{
// ...
Subject: "peter",
Context: &ladon.Context{
Context: ladon.Context{
"some-arbitrary-key": "max",
},
}
Expand All @@ -487,7 +487,7 @@ and would match
```go
var err = warden.IsAllowed(&ladon.Request{
// ...
Context: &ladon.Context{
Context: ladon.Context{
"some-arbitrary-key": [
["some-arbitrary-pair-value", "some-arbitrary-pair-value"],
["some-other-arbitrary-pair-value", "some-other-arbitrary-pair-value"],
Expand All @@ -501,7 +501,7 @@ but not:
```go
var err = warden.IsAllowed(&ladon.Request{
// ...
Context: &ladon.Context{
Context: ladon.Context{
"some-arbitrary-key": [
["some-arbitrary-pair-value", "some-other-arbitrary-pair-value"],
]
Expand Down Expand Up @@ -540,7 +540,7 @@ This condition is fulfilled by this (allow for all resources containing `part:no
var err = warden.IsAllowed(&ladon.Request{
// ...
Resource: "rn:city:laholm:part:north"
Context: &ladon.Context{
Context: ladon.Context{
delimiter: ":",
value: "part:north"
},
Expand All @@ -553,7 +553,7 @@ or ( allow all resources with `city:laholm`)
var err = warden.IsAllowed(&ladon.Request{
// ...
Resource: "rn:city:laholm:part:north"
Context: &ladon.Context{
Context: ladon.Context{
delimiter: ":",
value: "city:laholm"
},
Expand All @@ -566,7 +566,7 @@ but not (allow for all resources containing `part:west`, the resource does not c
var err = warden.IsAllowed(&ladon.Request{
// ...
Resource: "rn:city:laholm:part:north"
Context: &ladon.Context{
Context: ladon.Context{
delimiter: ":",
value: "part:west"
},
Expand Down

0 comments on commit 85e6e7a

Please sign in to comment.