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
|
end
|
||||||
|
|
||||||
#right now workspace is the only option supported
|
#right now workspace is the only option supported
|
||||||
def creds(token,wspace=nil)
|
def creds(token,xopts)
|
||||||
authenticate(token)
|
authenticate(token)
|
||||||
raise ::XMLRPC::FaultException.new(404, "database not loaded") if(not db)
|
raise ::XMLRPC::FaultException.new(404, "database not loaded") if(not db)
|
||||||
wspace = workspace(wspace)
|
opts = fix_options(xopts)
|
||||||
raise ::XMLRPC::FaultException.new(404, "unknown workspace") if(not wspace)
|
wspace = workspace(opts[:workspace])
|
||||||
ret = {}
|
ret = {}
|
||||||
ret[:creds] = []
|
ret[:creds] = []
|
||||||
@framework.db.creds(wspace).each do |c|
|
@framework.db.creds(wspace).each do |c|
|
||||||
|
|
Loading…
Reference in New Issue