You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ go get github.com/el-Mike/restrict
21
21
## Concepts
22
22
Restrict helps with building simple yet powerful access policies in declarative way. In order to do that, we introduce following concepts:
23
23
***Subject** - an entity that wants to perform some actions. Needs to implement Subject interface and provide unique role name. Subject is usually any kind of user in your application.
24
-
***Resource** - an entity that is a target of the actions. Needs to implement Resource interface and provide unique resource name. Resource can be implemented by any entity in your domain.
24
+
***Resource** - an entity that is a target of the actions. Needs to implement Resource interface and provide unique resource name. Resource can be implemented by any entity or object in your domain.
25
25
***Action** - an arbitrary operation that can be performed on given Resource.
26
26
***Context** - a map of values containing any additional data needed to validate the access rights.
0 commit comments