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
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
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
Andrew8xx8
9f45e01e84
Description to groups added
2013-02-28 17:14:21 +04:00
Dmitriy Zaporozhets
d075df56d3
Improve perfomance of removeing group
2012-12-30 14:26:19 +02:00
Dmitriy Zaporozhets
e37a043df7
Get rid of skipping callbacks in production code. Dont trigger gitolite more than once on import in group
2012-12-30 13:37:33 +02:00
Andrey Kumanyaev
98044f0f14
Code duplication removed from controllers
2012-12-26 20:30:11 +04:00
Dmitriy Zaporozhets
eb1004f789
Refactor abilities. Added ProjectUpdate context. Fixed few bugs with namespaces
2012-11-29 12:39:03 +02:00
Dmitriy Zaporozhets
65c470e843
Reannotated
2012-11-24 22:16:51 +02:00
Dmitriy Zaporozhets
2b683b0d0b
Ability to create project with namespace
2012-11-23 07:11:09 +03:00
Dmitriy Zaporozhets
e29ccece33
Namespace model added. Migration to convert exit project/groups
2012-11-22 21:34:26 +03:00
Dmitriy Zaporozhets
95c23b2f97
Annotated. schema updated
2012-11-19 21:24:05 +03:00
Dmitriy Zaporozhets
41e53eb980
Annotated
2012-10-09 11:14:17 +03:00