summaryrefslogtreecommitdiffstats
path: root/utils/authorization.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-9618: Don't change default role permissions for policy. (#8303)George Goldberg2018-02-191-16/+16
|
* Updates migration tests to reflect front-end mapping changes. (#8237)Martin Kraft2018-02-131-1/+1
|
* XYZ-51: Unit tests for and changes to SetRolePermissionsFromConfig. (#8160)Martin Kraft2018-02-091-27/+27
| | | | | | | | | | | | | | | | * XYZ-10: Role store. * XYZ-37: Update unit tests to work with database roles. * XYZ-51: Tests 'SetRolePermissionsFromConfig' against JSON from policy page. * XYZ-51: Adds permissions in non-licensed cases also. * XYZ-51: Removes some permissions from team_user role. * XYZ-51: Merge fix for change to default permissions from PR 8208. * XYZ-51: Removes unused function.
* AllowEditPost and PostEditTimeLimit migration (#8208)Jesús Espino2018-02-091-0/+23
| | | | | | | | * AllowEditPost and PostEditTimeLimit migration * Not set EDIT_POST permission to sysadmin_role if ALLOW_EDIT_POST is configured to NEVER * Remove a bit of code duplication
* XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-061-15/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * XYZ-13: Update Permission and Role structs to new design. * XYZ-10: Role store. * XYZ-9/XYZ-44: Roles API endpoints and WebSocket message. * XYZ-8: Switch server permissions checks to store backed roles. * XYZ-58: Proper validation of roles where required. * XYZ-11/XYZ-55: Migration to store backed roles from policy config. * XYZ-37: Update unit tests to work with database roles. * XYZ-56: Remove the "guest" role. * Changes to SetDefaultRolesFromConfig. * Short-circuit the store if nothing has changed. * Address first round of review comments. * Address second round of review comments.
* Role refactor (#7867)Chris2017-11-211-101/+107
| | | | | | | | * role refactor * add missing file * fix web test
* simplify things (#7735)Chris2017-10-301-22/+0
|
* Renaming repoChristopher Speller2017-09-061-1/+1
|
* PLT-6226 Fixing races with licensing (#7213)Corey Hulen2017-08-161-9/+9
| | | | | | | | | | * PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
* Merge release-3.10 into master (#6654)Joram Wilander2017-06-151-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-6787 Fixed being able to send a post before files finished uploading (#6617) * Fix quick switcher for channels/users not stored locally (#6610) * Fix button text on confirm mention modal (#6609) * fix post delete permission of channel admin (#6608) * open comment thread for the most recent reply-able message (#6605) * Use mutex flag with yarn to prevent concurrent builds interfering (#6619) * Use mutex flag with yarn to prevent concurrent builds interfering * Remove yarn mutex file with clean * Minor bug fixes (#6615) * PLT-6774 - Fixing color for offline icon * PLT-6784 - Fixing status icon * Fixing icon margin * Updating caret position * PLT-6070 Have ChannelMentionProvider stop searching after a term returns no results (#6620) * Fixing JS error (#6623) * Minor bug fixes (#6622) * PLT-6808 - Updating channel switcher on mobile * PLT-6743 - Updating scrollbar styling * Login instead of failing if user exists in OAuth sign-up flow (#6627) * PLT-6802 Disable team switcher (#6626) * Disable team switcher * Fix ESLint errors * PLT-6807 Ensured select teams page can scroll on iOS (#6630) * Do not redirect from account switch pages on 401 (#6631) * Fixing loadtest command and renaming to /test (#6624) * PLT-6820 Update mattermost-redux dependency (#6632) * translations PR 20170612 (#6629) * Bump HTTP client timeout to 30 seconds (#6633) * For team unreads return empty array instead of null (#6636) * PLT-6831 Fix status modal localization IDs (#6637) * Fix status modal localization IDs * Update test snapshot
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* PLT-6139 (Server): Private Channel member managing (#5941)George Goldberg2017-04-031-0/+33
| | | | Adds an EE policy feature to allow restricting system-wide which level of Admins can manage the membership of private channels.
* PLT-6063: AddUserToTeam permission depends on policy. (#5869)George Goldberg2017-03-261-10/+19
| | | Uses same policy setting as InviteUserToTeam.
* Fix policy application in team edition. (#5771)George Goldberg2017-03-151-104/+158
|
* Fix permission grants for channel management. (#5478)George Goldberg2017-02-211-0/+16
| | | | When selecting the Channel, Team & System level for channel permissions, they must be explicitly granted to the Channel *and* the Team admins.
* Move permissions code into app package (#5146)Joram Wilander2017-01-231-1/+10
| | | | | | * Move permissions code into app package * Revert getPosts permission
* Message Editing and Deleting permissions (#4692)Amit Yadav2017-01-181-0/+22
|
* PLT-5080 (Server): Channel-Admin level permissions (#4874)George Goldberg2016-12-221-0/+24
| | | | Adds permissions for manage/delete public/private channels at the Channel Admin level.
* PLT-4990 - Server: Split out channel permissions to Create/Manage/Delete (#4864)George Goldberg2016-12-211-10/+56
| | | | | | * Server side changes. * Fix unit tests and default config.
* Modifying permissions system. (#3897)Christopher Speller2016-09-131-0/+81