fixed db.creds call in RPC
git-svn-id: file:///home/svn/framework3/trunk@13286 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
973170279c
commit
8f9bfd26c2
|
@ -987,11 +987,11 @@ public
|
|||
end
|
||||
|
||||
#right now workspace is the only option supported
|
||||
def creds(token,xopts)
|
||||
def creds(token,wspace=nil)
|
||||
authenticate(token)
|
||||
raise ::XMLRPC::FaultException.new(404, "database not loaded") if(not db)
|
||||
opts = fix_options(xopts)
|
||||
wspace = workspace(opts[:workspace])
|
||||
wspace = workspace(wspace)
|
||||
raise ::XMLRPC::FaultException.new(404, "unknown workspace") if(not wspace)
|
||||
ret = {}
|
||||
ret[:creds] = []
|
||||
@framework.db.creds(wspace).each do |c|
|
||||
|
|
Loading…
Reference in New Issue