Created
August 15, 2017 05:16
-
-
Save manduks/99c0bacaee18cfc713b8bcd69ad5d475 to your computer and use it in GitHub Desktop.
a simple json for roles definition
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
{ | |
modules: { | |
account: ["canChangePassword", "canUpdateProfile", "canDeleteUser", "..."], | |
projects: ["canCreate", "...."], | |
teams: [...], | |
messages: [...], | |
Analytics: [...], | |
Other: [..], | |
} | |
teams: { | |
0001: { | |
messages: { | |
chanel: ["canCreate", "...."], | |
}, | |
dashboard: { | |
meetings: ["canCreate", "...."], | |
teams: ["canCreate", "...."], | |
}, | |
protocol: { | |
overview: ["canCreate", "...."], | |
hypotheses: ["canCreate", "...."], | |
budget: ["canCreate", "...."], | |
}, | |
assessment: { | |
kickoff: ["canCreate", "...."], | |
topicSpecificMeetings: ["canCreate", "...."], | |
consultSummary: ["canCreate", "...."], | |
}, | |
admin: { | |
investigator: ["canCreate", "...."], | |
team: ["canCreate", "...."], | |
roles: ["canCreate", "...."], | |
}, | |
}, | |
0002: { | |
messages: { | |
chanel: ["canCreate", "...."], | |
}, | |
dashboard: { | |
meetings: ["canCreate", "...."], | |
teams: ["canCreate", "...."], | |
}, | |
protocol: { | |
overview: ["canCreate", "...."], | |
hypotheses: ["canCreate", "...."], | |
budget: ["canCreate", "...."], | |
}, | |
assessment: { | |
kickoff: ["canCreate", "...."], | |
topicSpecificMeetings: ["canCreate", "...."], | |
consultSummary: ["canCreate", "...."], | |
}, | |
admin: { | |
investigator: ["canCreate", "...."], | |
team: ["canCreate", "...."], | |
roles: ["canCreate", "...."], | |
}, | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment