<< | Index | >>
allowed only RootUser and AdminUser editing of fachinfo(chapters)
in src/state/drug/fachinfo.rb
def _has_editor_privilege? user = @session.user [ 'org.oddb.RootUser', 'org.oddb.AdminUser' ].each do |priv| return true if user.allowed?('login', priv) end return false end
attr_reader :user
ch.oddb> registration('62069') -> #<ODDB::Registration:0x0000000cd004d8> ch.oddb> registration('62069').sequence('01') -> LEV DESITIN 250 mg, Minipacks mit Mini-Filmtabletten ch.oddb> registration('62069').sequence('01').fachinfo -> #<ODDB::FachinfoDocument2001:0x0000000d2e9cc8> ch.oddb> registration('62069').sequence('01').fachinfo.links -> undefined method `created' for nil:NilClass ch.oddb>
use sl_generic_type.
ch.oddb> registration('32497').sequence('01').package('012').generic_type -> ch.oddb> registration('32497').sequence('01').package('012').sl_generic_type -> original ch.oddb>
in Result list (by Package)