forked from HumanSignal/label-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: OPTIC-630: Restrict access to project import UI and API through…
… a billing flag (HumanSignal#5808) **Reason for change** To enable enterprise in ensuring security compliance for data sensitive UI + APIs. --------- Co-authored-by: robot-ci-heartex <[email protected]>
- Loading branch information
1 parent
81fc6e1
commit 4cb2e40
Showing
10 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from rest_framework.permissions import BasePermission | ||
|
||
|
||
class ProjectImportPermission(BasePermission): | ||
""" | ||
Checks if the user has access to the project import API | ||
Default case is always true | ||
""" | ||
|
||
def has_permission(self, request, view): | ||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"message": "Merge branch 'fb-optic-669' of github.com:heartexlabs/label-studio into fb-optic-669", | ||
"commit": "badd45f7edecac446c7592e38dddcba33fc5a14b", | ||
"date": "2024-05-06T14:31:18.000Z", | ||
"branch": "fb-optic-669" | ||
"message": "Merge branch 'develop' into fb-optic-630", | ||
"commit": "d33a2fe8bd78ab352d6d1ab88738c07f9d0bb2a0", | ||
"date": "2024-05-06T19:55:41.000Z", | ||
"branch": "fb-optic-630" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"message": "Merge branch 'fb-optic-669' of github.com:heartexlabs/label-studio into fb-optic-669", | ||
"commit": "badd45f7edecac446c7592e38dddcba33fc5a14b", | ||
"date": "2024-05-06T14:31:18.000Z", | ||
"branch": "fb-optic-669" | ||
"message": "Merge branch 'develop' into fb-optic-630", | ||
"commit": "d33a2fe8bd78ab352d6d1ab88738c07f9d0bb2a0", | ||
"date": "2024-05-06T19:55:41.000Z", | ||
"branch": "fb-optic-630" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"message": "Merge branch 'fb-optic-669' of github.com:heartexlabs/label-studio into fb-optic-669", | ||
"commit": "badd45f7edecac446c7592e38dddcba33fc5a14b", | ||
"date": "2024-05-06T14:31:18.000Z", | ||
"branch": "fb-optic-669" | ||
"message": "Merge branch 'develop' into fb-optic-630", | ||
"commit": "d33a2fe8bd78ab352d6d1ab88738c07f9d0bb2a0", | ||
"date": "2024-05-06T19:55:41.000Z", | ||
"branch": "fb-optic-630" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters