Reverting 13286 to unbreak GUI and keep db calls consistent; options passed in hash.
git-svn-id: file:///home/svn/framework3/trunk@13302 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
9ebbe84a4a
commit
1d9c2a0f4f
|
@ -987,11 +987,11 @@ public
|
|||
end
|
||||
|
||||
#right now workspace is the only option supported
|
||||
def creds(token,wspace=nil)
|
||||
def creds(token,xopts)
|
||||
authenticate(token)
|
||||
raise ::XMLRPC::FaultException.new(404, "database not loaded") if(not db)
|
||||
wspace = workspace(wspace)
|
||||
raise ::XMLRPC::FaultException.new(404, "unknown workspace") if(not wspace)
|
||||
opts = fix_options(xopts)
|
||||
wspace = workspace(opts[:workspace])
|
||||
ret = {}
|
||||
ret[:creds] = []
|
||||
@framework.db.creds(wspace).each do |c|
|
||||
|
|
Loading…
Reference in New Issue