Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New role and capabilities manager #1584

Merged
merged 34 commits into from
Apr 28, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
140a79d
Adding custom capability management classes.
incraigulous Dec 20, 2021
8db8993
Adding yoast/phpunit to test script.
incraigulous Dec 22, 2021
d8165fb
Adding built-in role index
incraigulous Dec 22, 2021
b3e2933
Adding role edit.
incraigulous Jan 13, 2022
120e8ba
Addig delete and duplicate roles.
incraigulous Jan 18, 2022
a24bd6b
Code cleanup
incraigulous Jan 18, 2022
7904348
Style fixes.
incraigulous Jan 19, 2022
31f9819
Adding restrictions to role manager.
incraigulous Jan 20, 2022
355fd2e
Style fixes.
incraigulous Jan 20, 2022
15439e5
Merge branch 'master' of https://github.com/DiscipleTools/disciple-to…
incraigulous Jan 20, 2022
ac8ea04
Fixing bug where duplicating roles didn't get the correct keys.
incraigulous Jan 20, 2022
8b13e39
Making sure custom role slugs are unique.
incraigulous Feb 7, 2022
170b426
Merge branch 'master' of https://github.com/DiscipleTools/disciple-to…
incraigulous Feb 7, 2022
392c57e
Reverting contacts base setup merge.
incraigulous Feb 8, 2022
510e361
Returning failed role create submissions to role create form.
incraigulous Feb 19, 2022
005ba99
Converting custom roles to be stored in the options table
incraigulous Feb 19, 2022
a53f4c1
Removing dt_sanatize_array
incraigulous Feb 19, 2022
cb3ed35
Moving dt_set_custom_roles_and_permissions to base-setup.php.
incraigulous Feb 28, 2022
fc02d9e
Making sure the dt_capabilities filter is applied after add_filter ca…
incraigulous Feb 28, 2022
20d79a3
Reverting “Adding yoast/phpunit to test script.”
incraigulous Feb 28, 2022
df94ac9
Reverting migration number bump.
incraigulous Feb 28, 2022
d44a7b6
Calling setup capabilities manually after it was moved the init hook.
incraigulous Feb 28, 2022
44d5f7d
Removing unneeded $wpdb.
incraigulous Feb 28, 2022
1b375c7
Adding a comment.
incraigulous Feb 28, 2022
846c9e0
Adding default value to dt_custom_roles get_option
incraigulous Mar 17, 2022
502f450
Roles tab link wasn’t working.
incraigulous Mar 17, 2022
a5a7bf8
Loading custom roles on front-end.
incraigulous Mar 17, 2022
652d853
Merge branch 'master' of https://github.com/DiscipleTools/disciple-to…
incraigulous Mar 17, 2022
942da43
move custom roles setup
corsacca Mar 21, 2022
4445f5c
Merge branch 'DiscipleTools:master' into master
incraigulous Apr 22, 2022
f6cd286
Merge pull request #2 from DiscipleTools/custome-roles
incraigulous Apr 22, 2022
c277e4e
Merge branch 'master' of github.com:thecodezone/disciple-tools-theme
incraigulous Apr 22, 2022
0415d70
Filtering restricted capabilities.
incraigulous Apr 22, 2022
eb7a9a1
Style fix.
incraigulous Apr 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Code cleanup
  • Loading branch information
incraigulous committed Jan 18, 2022
commit a24bd6b7b2ab0e767f84553bd72cff04146276e9
72 changes: 72 additions & 0 deletions dt-core/admin/css/disciple-tools-roles-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#role-manager table {
width: 100%;
}

#role-manager td,
#role-manager th {
padding: 15px;
}

#role-manager tbody tr {
background-color: #F6F7F7;
}

#role-manager tbody tr.active {
background-color: #2170B1;
}

#role-manager tbody tr.active td {
color: white;
}

#role-manager tbody tr.active a {
color: #F6F7F7;
}

#role-manager details.flyout .dashicons-ellipsis {
transform: rotate(-90deg);
cursor: pointer;
}

#role-manager .role {
border: none;
}

#role-manager select,
#role-manager input[type=text],
#role-manager textarea {
width: 100%;
}

#role-manager .capabilities {
background-color: white;
border: 0.5px solid #50575E;
border-radius: 4px;
padding: 5px;
width: 100%;
display: grid;
grid-template-columns: repeat(4, 1fr)
}

#role-manager .capability {
padding: 10px;
}

#role-manager #source-filter {
margin-top: 10px;
}

#role-manager .dashicons-editor-help {
font-size: 12px;
line-height: 18px;
color: gray;
}

#role-manager .dashicons-unlock {
color: #2170B1;
}

#role-manager .dashicons-lock {
color: #E14D42;
}

Loading