-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3c3da0
commit db21685
Showing
19 changed files
with
773 additions
and
182 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"sf_observer": { | ||
"project_user_configs": ["view_own", "edit_own"], | ||
"texts": ["view"], | ||
"sf_note_threads": ["view"], | ||
"notes": ["view"], | ||
"text_audio": ["view"] | ||
}, | ||
"pt_observer": { | ||
"project_user_configs": ["view_own", "edit_own"], | ||
"project": ["view"], | ||
"texts": ["view"], | ||
"questions": ["view"], | ||
"answers": ["view"], | ||
"answer_status": ["view"], | ||
"answer_comments": ["view"], | ||
"likes": ["view"], | ||
"biblical_terms": ["view"], | ||
"pt_note_threads": ["view"], | ||
"sf_note_threads": ["view"], | ||
"notes": ["view"], | ||
"text_audio": ["view"] | ||
}, | ||
"sf_commenter": { | ||
"project_user_configs": ["view_own", "edit_own"], | ||
"texts": ["view"], | ||
"sf_note_threads": ["view", "create", "delete_own"], | ||
"notes": ["view", "create", "edit_own", "delete_own"], | ||
"text_audio": ["view"] | ||
}, | ||
"sf_community_checker": { | ||
"project_user_configs": ["view_own", "edit_own"], | ||
"texts": ["view"], | ||
"questions": ["view"], | ||
"answers": ["view", "create", "edit_own", "delete_own"], | ||
"answer_status": ["view"], | ||
"answer_comments": ["view", "create", "edit_own", "delete_own"], | ||
"likes": ["view", "create", "delete_own"], | ||
"text_audio": ["view"] | ||
}, | ||
"pt_consultant": { | ||
"project_user_configs": ["view_own", "edit_own"], | ||
"project": ["view"], | ||
"texts": ["view"], | ||
"questions": ["view"], | ||
"answers": ["view"], | ||
"answer_status": ["view"], | ||
"answer_comments": ["view"], | ||
"likes": ["view"], | ||
"biblical_terms": ["view"], | ||
"pt_note_threads": ["view", "create", "edit", "delete_own"], | ||
"sf_note_threads": ["view", "create", "edit", "delete_own"], | ||
"notes": ["view", "create", "edit_own", "delete_own"], | ||
"text_audio": ["view"] | ||
}, | ||
"pt_translator": { | ||
"project_user_configs": ["view_own", "edit_own"], | ||
"project": ["view"], | ||
"texts": ["view", "edit"], | ||
"questions": ["view"], | ||
"answers": ["view", "create", "edit_own", "delete_own"], | ||
"answer_comments": ["view", "create", "edit_own", "delete_own"], | ||
"answer_status": ["view"], | ||
"likes": ["view", "create", "delete_own"], | ||
"biblical_terms": ["view", "edit"], | ||
"pt_note_threads": ["view", "create", "edit", "delete_own"], | ||
"sf_note_threads": ["view", "create", "edit", "delete_own"], | ||
"notes": ["view", "create", "edit_own", "delete_own"], | ||
"text_audio": ["view"], | ||
"training_data": ["view", "create", "edit_own", "delete_own"], | ||
"drafts": ["view"] | ||
}, | ||
"pt_administrator": { | ||
"project_user_configs": ["view_own", "edit_own"], | ||
"project": ["view"], | ||
"texts": ["view", "edit"], | ||
"questions": ["view", "create", "edit", "delete"], | ||
"answers": ["view", "create", "delete", "edit_own"], | ||
"answer_comments": ["view", "create", "edit_own", "delete"], | ||
"answer_status": ["view", "edit"], | ||
"likes": ["view", "create", "delete_own"], | ||
"biblical_terms": ["view", "edit"], | ||
"pt_note_threads": ["view", "create", "edit", "delete"], | ||
"sf_note_threads": ["view", "create", "edit", "delete"], | ||
"notes": ["view", "create", "edit_own", "delete"], | ||
"text_audio": ["view", "edit", "create", "delete"], | ||
"training_data": ["view", "create", "edit", "delete"], | ||
"drafts": ["view"], | ||
"user_invites": ["create"] | ||
}, | ||
"none": {} | ||
} |
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,12 @@ | ||
namespace SIL.XForge.Scripture.Models; | ||
|
||
public static class Operation | ||
{ | ||
public const string Create = "create"; | ||
public const string Edit = "edit"; | ||
public const string Delete = "delete"; | ||
public const string View = "view"; | ||
public const string EditOwn = "edit_own"; | ||
public const string DeleteOwn = "delete_own"; | ||
public const string ViewOwn = "view_own"; | ||
} |
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,21 @@ | ||
namespace SIL.XForge.Scripture.Models; | ||
|
||
public static class SFProjectDomain | ||
{ | ||
public const string Texts = "texts"; | ||
public const string Project = "project"; | ||
public const string ProjectUserConfigs = "project_user_configs"; | ||
public const string Questions = "questions"; | ||
public const string Answers = "answers"; | ||
public const string AnswerComments = "answer_comments"; | ||
public const string AnswerStatus = "answer_status"; | ||
public const string Likes = "likes"; | ||
public const string BiblicalTerms = "biblical_terms"; | ||
public const string PTNoteThreads = "pt_note_threads"; | ||
public const string SFNoteThreads = "sf_note_threads"; | ||
public const string Notes = "notes"; | ||
public const string TextAudio = "text_audio"; | ||
public const string TrainingData = "training_data"; | ||
public const string Drafts = "drafts"; | ||
public const string UserInvites = "user_invites"; | ||
} |
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,9 @@ | ||
using SIL.XForge.Models; | ||
|
||
namespace SIL.XForge.Scripture.Services; | ||
|
||
public interface ISFProjectRights | ||
{ | ||
bool HasRight(Project project, string? userId, string projectDomain, string operation, IOwnedData? data = null); | ||
bool RoleHasRight(Project project, string role, string projectDomain, string operation); | ||
} |
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
Oops, something went wrong.