file_update_1002 in core/modules/file/file.install
Switch the 'edit files' permission to 'manage files'.
file_update_1003 in core/modules/file/file.install
Add a type column to the file_managed table, and add a file_metadata table.
filter_update_1001 in core/modules/filter/filter.install
Add a separate permission for image upload access.
NodeTypeTestCase::testNodeTypePermissions in core/modules/node/tests/node.test
Tests that node types permissions are correctly set from the Node Type UI.
system_update_1071 in core/modules/system/system.install
Grant the "administer flexible templates" permission to all user roles that already have the "administer layouts" permission.
TaxonomyVocabularyFunctionalTest::testVocabularyPermissions in core/modules/taxonomy/tests/taxonomy.test
Tests that vocabulary permissions are correctly set from the Taxonomy UI.
UserPermissionsTestCase::testAdministratorRole in core/modules/user/tests/user.test
Test assigning of permissions for the administrator role.
UserPermissionsTestCase::testEditorRole in core/modules/user/tests/user.test
Test assigning of permissions for the editor role.
UserPermissionsTestCase::testUserPermissionChanges in core/modules/user/tests/user.test
Change user permissions and check user_access().
UserRoleAdminTestCase::testRoleAdministration in core/modules/user/tests/user.test
Test adding, renaming and deleting roles.
UserRoleAdminTestCase::testRoleWeightChange in core/modules/user/tests/user.test
Test user role weight change operation.
user_role_delete in core/modules/user/user.module
Delete a user role from database.
user_role_save in core/modules/user/user.module
Save a user role to the database.