Valery Sizov
8b18449125
remove public field from namespace and refactoring
2016-01-04 16:00:29 +02:00
Yorick Peterse
a74d6d2043
Group methods for filtering public/visible groups
...
These methods will be used to get a list of groups, optionally
restricted to only those visible to a given user.
2015-11-18 13:05:45 +01:00
Douwe Maan
ecb83afabc
Refactor ability changes
2015-11-17 15:49:37 +01:00
Douwe Maan
e849b51cae
Merge branch 'master' into james11/gitlab-ce-removable-group-owner
2015-11-17 15:40:54 +01:00
Dmitriy Zaporozhets
a237999f00
Annotate models
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-11-13 19:22:46 +01:00
James Lopez
c6a0f109cd
refactored code as projects only have one owner. Kept some refactoring in place (has_owners concern)
2015-11-11 15:42:27 +00:00
Valery Sizov
6051c28fc0
Allow groups to appear in the search results if the group owner allows it
2015-11-05 13:18:51 +02:00
James Lopez
1b14bc5957
refactored permissions and added update_project_member ability logic. Also refactored owner methods to a concern.
2015-11-03 11:11:56 +00:00
Yorick Peterse
1554786c6a
Eager load various issue/note associations
...
This ensures we don't end up running N+1 queries for the objects in the
affected collections.
2015-10-15 12:05:01 +02:00
Stan Hu
19f478e00d
Fix Error 500 in API when accessing a group that has an avatar
...
Closes #2340
2015-08-24 07:46:06 -07:00
Robert Speicher
fb6dc1f07d
Add Group#add_* convenience methods
...
Encapsulates the logic for `Gitlab::Access::WHATEVER` levels.
2015-08-07 00:20:02 -04:00
Douwe Maan
b8066e2cd0
No more web url
2015-07-30 11:56:15 +02:00
Douwe Maan
05cca9342b
Use URL helpers
2015-07-29 12:03:53 +02:00
Douwe Maan
a784b996b3
Add project star and fork count, group avatar URL and user/group web URL attributes to API
2015-07-28 15:49:44 +02:00
Dmitriy Zaporozhets
47a95754de
Log group creation and removal
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-03 16:15:58 +02:00
Robert Speicher
b88da58cb6
Add reference_pattern to Referable models
2015-05-26 15:48:32 -04:00
Robert Speicher
c0faf91ff2
Add to_reference for models that support references
...
Now there is a single source of information for which attribute a model
uses to be referenced, and its special character.
2015-05-26 15:48:30 -04:00
Stan Hu
bf4b438459
Fix bug where avatar filenames were not actually deleted from the database during removal.
...
This would result in a 404 error in certain views.
The `save` call was being rolled back due to an error in the validation step.
Relax the validation step so that this works.
Closes #1570
2015-05-07 10:00:35 -07:00
Douwe Maan
0013ea5130
Remove duplication between Group and ProjectMember.
2015-04-14 12:41:19 +02:00
Douwe Maan
87dd3f215f
Let members be invited from Add members pane.
2015-04-14 12:08:10 +02:00
Douwe Maan
2b2bd402dc
Track who created a group or project member.
2015-04-14 12:06:42 +02:00
Douwe Maan
4ef6ffaad3
Split up AttachmentUploader.
2015-02-20 15:19:50 +01:00
Dmitriy Zaporozhets
8184a65644
Revert "Fix broken access control and refactor avatar upload"
...
This reverts commit 7d5f86f6cb .
2015-02-19 08:57:35 -08:00
Hannes Rosenögger and Douwe Maan
7d5f86f6cb
Fix broken access control and refactor avatar upload
...
This commit moves the note folder from
/public/uploads/note
to
/uploads/note
and changes the uploader accordingly.
Now it's no longer possible to avoid the access control by modifing the url.
The Avatar upload has been refactored to use an own uploader as well
to cleanly seperate the two upload types.
2015-02-16 20:10:15 +01:00
Dmitriy Zaporozhets
bbca6a0abd
Refactor sorting in project
2015-02-05 19:15:05 -08:00
Tim Bishop
0fe1c9b648
Fix group search to check path as well as name.
...
The API documentation says:
"You can search for groups by name or path with: /groups?search=Rails"
But you can't because the search query only checks the name, not
the path. This fixes that.
2015-01-30 23:49:01 +00:00
Boyan Tabakov
93bc2d5202
Added support for firing system hooks on group create/destroy and adding/removing users to group.
...
Added tests and updated docs. Also adding 'user_id' field in the hooks for adding/removing user from team.
2015-01-27 09:25:28 +02:00
Robert Schilling
05dd6309ba
Raise group avatar filesize limit to 200kb, fixes #8527
2015-01-02 14:54:51 +01:00
Dmitriy Zaporozhets
c69b8e0459
Huge replace of old users_project and users_group references
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-09-14 19:32:51 +03:00
dreis
1da2262efd
Added public groups area to enhance searching and exploring of projects
...
fixed whitespaces and quotes
fixed whitespaces
fixed devise.html.haml
fixed method parenthesis in app/models/group.rb
removed links from header
removed links from devise.html
added tests
2014-07-15 08:19:27 +02:00
Dmitriy Zaporozhets
8f60b5b4fc
Group and Event strong_params
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-26 16:57:10 +03:00
Dmitriy Zaporozhets
98ba075c32
User model to strong params. Comment other attr_accessible to let tests run
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-26 15:11:45 +03:00
Dmitriy Zaporozhets
0fdce4a52b
Refactor some search scopes to prevent wierd behaviour and PG::Error issues
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-05 20:37:35 +03:00
Dmitriy Zaporozhets
aea79b8035
Add ability rule for creating project in namespace
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-05-28 19:03:01 +03:00
Dmitriy Zaporozhets
36f861f1b1
Re-annotate models
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-09 15:05:03 +03:00
Jason Hollingsworth
2f69213e3f
Allow access to groups with public projects.
...
Fixed Group avatars to only display when user has read
permissions to at least one project in the group.
2014-02-20 09:26:38 -06:00
Steven Thonus
251df827a5
added group avatars
2014-01-28 08:38:00 +01:00
Jeroen van Baarsen and Dmitriy Zaporozhets
f57a4dd922
Fixed rails 4 deprecation warnings in groups
2013-12-10 12:11:28 +02:00
Marin Jankovski
97cf31c4cb
Update user access level when adding to group.
2013-10-14 15:15:14 +02:00
Dmitriy Zaporozhets
e219cf7246
Annotate!
2013-10-01 15:15:28 +03:00
Dmitriy Zaporozhets
65b9768ccf
Group ownership completely based on users_groups relation now
...
Before we have only owner_id to determine group owner
With multiple owners per group we should get rid of owner_id in group.
So from now @group.owner will always be nil but
@group.owners return an actual array of users who can admin this group
2013-09-26 14:49:22 +03:00
Dmitriy Zaporozhets
573d367be5
Modify permissions for project and group
...
* Hooks and team pages allowed only for masters/owners
* Group page allowed for admin
* Corrent authentication for Projects controller
* Hide some project elements from visitor
2013-09-25 14:05:35 +03:00
Dmitriy Zaporozhets
24e26d8b7a
Improve user block/removal from admin area
...
Provide UI with explanation what happens when you block or remove user
When remove user - remove all groups where user is an only owner
2013-08-27 21:39:34 +03:00
Dmitriy Zaporozhets
a5dbe35354
Improve change group ownership logic
2013-06-26 14:51:57 +03:00
Dmitriy Zaporozhets
32ef2f37f6
Add owner to group members after group create
2013-06-18 17:47:52 +03:00
Dmitriy Zaporozhets
209f96bebe
Use project.team over project.users
2013-06-18 17:47:52 +03:00
Dmitriy Zaporozhets
95965d3f54
Added UsersGroup validations. Added ability to add UsersGroup to group via UI
2013-06-18 17:47:52 +03:00
Dmitriy Zaporozhets
81697850eb
create UsersGroup entity. Modify ability to check group owners instead one owner
2013-06-18 17:47:52 +03:00
Andrey Kumanyaev
41bbbb6df0
Update model methods
2013-04-03 06:20:52 +04:00
Dmitriy Zaporozhets
21b1fee92c
reannotated
2013-03-15 15:16:02 +02:00