mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
add groups feature
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
/**
|
||||
* Copyright © 2019 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
|
||||
**/
|
||||
|
||||
module.exports = function UserServiceFactory(
|
||||
$rootScope
|
||||
, $http
|
||||
, socket
|
||||
, AppState
|
||||
, AddAdbKeyModalService
|
||||
@@ -8,6 +13,10 @@ module.exports = function UserServiceFactory(
|
||||
|
||||
var user = UserService.currentUser = AppState.user
|
||||
|
||||
UserService.getUser = function() {
|
||||
return $http.get('/api/v1/user')
|
||||
}
|
||||
|
||||
UserService.getAdbKeys = function() {
|
||||
return (user.adbKeys || (user.adbKeys = []))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user