Jeremy Lin
4c3b328aca
Hide ciphers from non-selected collections for org owners/admins
If org owners/admins set their org access to only include selected
collections, then ciphers from non-selected collections shouldn't
appear in "My Vault". This matches the upstream behavior.
6 years ago
Daniel García
0365b7c6a4
Add support for multiple simultaneous database features by using macros.
Diesel requires the following changes:
- Separate connection and pool types per connection, the generate_connections! macro generates an enum with a variant per db type
- Separate migrations and schemas, these were always imported as one type depending on db feature, now they are all imported under different module names
- Separate model objects per connection, the db_object! macro generates one object for each connection with the diesel macros, a generic object, and methods to convert between the connection-specific and the generic ones
- Separate connection queries, the db_run! macro allows writing only one that gets compiled for all databases or multiple ones
6 years ago
Jeremy Lin
790146bfac
Fix error in PostgreSQL build
6 years ago
Jeremy Lin
979d010dc2
Add support for hiding passwords in a collection
Ref: https://github.com/bitwarden/server/pull/743
6 years ago
Daniel García
9cca64003a
Remove unused dependency and simple feature, update dependencies and fix some clippy lints
6 years ago
Michael Powers
f5f9861a78
Adds support for PostgreSQL which resolves #87 and is mentioned in #246 .
This includes migrations as well as Dockerfile's for amd64.
The biggest change is that replace_into isn't supported by Diesel for the
PostgreSQL backend, instead requiring the use of on_conflict. This
unfortunately requires a branch for save() on all of the models currently
using replace_into.
7 years ago
Emil Madsen
ab95a69dc8
Rework migrations for MySQL
7 years ago
Дамјан Георгиевски
473f8b8e31
remove some unneeded mutability
8 years ago
Miroslav Prasil
08ca47cadb
Update revision when adding or removing cipher from collection
8 years ago
Miroslav Prasil
5272b465cc
Update revision of affected users when deleting Collection
8 years ago
Daniel García
bef1183c49
Only send one notification per vault import and purge, improve move ciphers functions
8 years ago
Daniel García
30e768613b
Start using rustfmt and some style changes to make some lines shorter
8 years ago
Daniel García
6a99849a1e
Implemented proper error handling, now we can do `user.save($conn)?;` and it works.
In the future, maybe we can do the same with the `find_by_id` methods that return an Option.
8 years ago
Miroslav Prasil
8451a70de6
Rewrite find_by_user_uuid to use one query
8 years ago
Daniel García
738ad2127b
Fixed some clippy linting issues
8 years ago
Daniel García
cb930a0858
Remove some required values during login, now uses default values
8 years ago
Daniel García
94810c106a
Migrate to rust 2018 edition
8 years ago
Daniel García
c673370103
Updated bw_rs to Rocket version 0.4-rc1
8 years ago
janost
5292d38c73
CollectionCipher::save() and delete() should return QueryResult instead of bool
8 years ago
Miroslav Prasil
54f54ee845
Update revision for users on collection save
8 years ago
Miroslav Prasil
a5ef8aef0f
Update affected users revision when there are collection changes
8 years ago
Miroslav Prasil
692ed81306
Do not show organization stuff to not accepted user
8 years ago
Miroslav Prasil
62be23b1c0
Support listing and deleting users from collection
8 years ago
Miroslav Prasil
85ecd001a5
Fix user invitation
8 years ago
Miroslav Prasil
a6105f7029
Let find_by_uuid_and_user return indirect collection ( #26 )
8 years ago
Miroslav Prasil
941747f9e8
Implement deleting Organization
8 years ago
Miroslav Prasil
a0d2ca3f24
Implement deleting collections
8 years ago
Miroslav Prasil
21c1ab7fda
Remove dependent items when removing cipher
8 years ago
Miroslav Prasil
34f2aa68f4
Implement Collection-Cipher mapping
8 years ago
Daniel García
032134aabc
Fixed some errors asigning collections to users
8 years ago
Daniel García
79b4ddcae8
Added read_only bit to users_collections
8 years ago
Daniel García
0cb58add54
Implemented some admin methods, inserted CollectionsUsers only when Org accessAll == false, and implemented find_collection when user has access_all in Org
8 years ago
Miroslav Prasil
514a372bc8
Add per-user folder-cipher mapping
8 years ago
Daniel García
69e624f82b
Improved collection loading
8 years ago
Miroslav Prasil
c5185ddb83
Adding some oganization features
8 years ago
Daniel García
4093bf92fe
Initial organizations functionality: Creating orgs and inviting users
8 years ago
Daniel García
1bc346688c
Some initial work on organizations, nothing works yet
9 years ago
Daniel García
912901780e
Updated modified date when saving and removed hardcoded attachment domain
9 years ago
Daniel García
31bf2bc2b1
Solved some warnings
9 years ago
Daniel García
b54684b677
Upload and download attachments, and added License file
9 years ago
Daniel García
5cd40c63ed
First working version
9 years ago