This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/app/scenes
Saumya Pandey bc4fe05147
feat: Read-only users (#1955)
* Introduce isViewer field

* Update policies

* Make users read-only feature

* Remove not demoting current user validation

* Update tests

* Catch the unhandled promise rejection

* Hide unnecessary ui elements for read-only user

* Update app/scenes/Settings/People.js

Co-authored-by: Tom Moor <tom.moor@gmail.com>

* Remove redundant logic for admin only policies

* Use can logic

* Update snapshot

* Remove lint error

* Update snapshot

* Minor fix

* Update app/menus/UserMenu.js

Co-authored-by: Tom Moor <tom.moor@gmail.com>

* Update server/api/users.js

Co-authored-by: Tom Moor <tom.moor@gmail.com>

* Update app/components/DocumentListItem.js

Co-authored-by: Tom Moor <tom.moor@gmail.com>

* Update app/stores/UsersStore.js

Co-authored-by: Tom Moor <tom.moor@gmail.com>

* Use useCurrentTeam hook in functional component

* Update translation

* Update ternary

* Remove punctuation

* Move the functions to User model

* Update share policy and shareMenu

* Rename makeAdmin to promote

* Create updateCounts function and Rank enum

* Update tests

* Remove enum

* Use async await, remove enum and create computed accessor

* Remove unused variable

* Fix lint issues

* Hide templates

* Create shared/types and use rank type from it

* Delete shared/utils/rank type file

Co-authored-by: Tom Moor <tom.moor@gmail.com>
2021-04-11 19:39:17 -07:00
..
CollectionPermissions fix: Improve dark mode styling 2021-03-31 20:57:30 -07:00
Document fix: Alignment of backlinks and references (#2006) 2021-04-05 17:19:31 -07:00
GroupMembers fix: Improve dark mode styling 2021-03-31 20:57:30 -07:00
Login chore: Clarify flow on /create page 2021-04-03 14:29:08 -07:00
Search feat: Read-only users (#1955) 2021-04-11 19:39:17 -07:00
Settings feat: Read-only users (#1955) 2021-04-11 19:39:17 -07:00
Archive.js fix: Sticky archive header 2021-03-24 18:42:12 -07:00
Collection.js feat: Read-only users (#1955) 2021-04-11 19:39:17 -07:00
CollectionDelete.js chore: Improve toasts 2021-01-02 21:47:02 -08:00
CollectionEdit.js feat: Add read-only collections (#1991) 2021-03-30 21:02:08 -07:00
CollectionExport.js chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
CollectionNew.js feat: Add read-only collections (#1991) 2021-03-30 21:02:08 -07:00
DocumentDelete.js flow: Convert to different <Trans> component syntax for flow compatability 2021-01-31 21:14:14 -08:00
DocumentMove.js chore: Fix modal nesting, remove react-modal (#1996) 2021-03-30 18:46:14 -07:00
DocumentNew.js chore: Improve toasts 2021-01-02 21:47:02 -08:00
DocumentShare.js chore: Upgrade flow (#1854) 2021-01-29 21:36:09 -08:00
DocumentTemplatize.js chore: Improve toasts 2021-01-02 21:47:02 -08:00
Drafts.js fix: Mispositioned sticky headers in modals 2021-02-18 23:20:12 -08:00
Error404.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
ErrorOffline.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
ErrorSuspended.js flow: Convert to different <Trans> component syntax for flow compatability 2021-01-31 21:14:14 -08:00
GroupDelete.js chore: Improve toasts 2021-01-02 21:47:02 -08:00
GroupEdit.js chore: Improve toasts 2021-01-02 21:47:02 -08:00
GroupNew.js chore: Improve toasts 2021-01-02 21:47:02 -08:00
Home.js chore: Standardized headers (#1883) 2021-02-14 13:18:33 -08:00
Invite.js chore: Improve toasts 2021-01-02 21:47:02 -08:00
KeyboardShortcuts.js fix: Meta key shortcuts not bound correctly in Windows browsers (#1753) 2020-12-30 09:35:33 -08:00
Logout.js feat: Add /logout route for SLO support 2021-03-30 20:10:52 -07:00
Starred.js chore: Standardized headers (#1883) 2021-02-14 13:18:33 -08:00
Templates.js feat: Read-only users (#1955) 2021-04-11 19:39:17 -07:00
Trash.js fix: Mispositioned sticky headers in modals 2021-02-18 23:20:12 -08:00
UserDelete.js chore: Upgrade flow (#1854) 2021-01-29 21:36:09 -08:00
UserProfile.js fix: 'Suspended' badge misaligned on user profiles 2021-02-12 17:34:40 -08:00