gitcontacts 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/lib/gitcontacts/version.rb +1 -1
- data/lib/gitcontacts.rb +6 -0
- metadata +1 -2
- data/cookies +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32f8aa6d72a71df70529373d58120aaae71975a3
|
4
|
+
data.tar.gz: 76a57917abbc81ef9698eea46b94192ed3c32b50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7f901de92143f961de9c289aad8b199ea3cbbc26ac9a4decd4d756f68d899624abb8b60923c7c33334678530c278a8984de77596e70b68115bec861cc2bfe56
|
7
|
+
data.tar.gz: 8c168ee166b5ade5a9263640fcc55050d3ba77680da91ad1fb07b9b678415d14cd0ec8fb953642b0f574405b18799c74bb481eda48b937f085947bfea60b7dce
|
data/.gitignore
CHANGED
data/lib/gitcontacts/version.rb
CHANGED
data/lib/gitcontacts.rb
CHANGED
@@ -209,6 +209,12 @@ module GitContacts
|
|
209
209
|
true
|
210
210
|
end
|
211
211
|
end
|
212
|
+
|
213
|
+
def get_contacts_user_privileges operator, gid, uid
|
214
|
+
return unless GitContacts::relation_valid?(operator, gid)
|
215
|
+
privilege = 'user' if contacts.getusers.include? uid
|
216
|
+
privilege = 'admin' if contacts.getadmins.include? uid
|
217
|
+
end
|
212
218
|
|
213
219
|
# code review: @AustinChou
|
214
220
|
def edit_contacts_user_privileges operator, gid, uid, payload
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitcontacts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AustinChou
|
@@ -93,7 +93,6 @@ files:
|
|
93
93
|
- LICENSE.txt
|
94
94
|
- README.md
|
95
95
|
- Rakefile
|
96
|
-
- cookies
|
97
96
|
- gitcontacts.gemspec
|
98
97
|
- lib/gitcontacts.rb
|
99
98
|
- lib/gitcontacts/Contacts.rb
|
data/cookies
DELETED