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:
Raphael Mudge 2011-07-21 20:00:11 +00:00
parent 973170279c
commit 8f9bfd26c2
1 changed files with 3 additions and 3 deletions

View File

@ -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|