Zotonic
Zotonic
zotonic@conference.zotonic.com
Monday, 20 August 2012< ^ >
arjan has set the subject to: Zotonic - the Erlang CMS
Room Configuration

GMT+2
[11:46:20] Ilya Rezvov joins the room
[12:48:35] <Marc Worrell> @Ilya, actually the language code is optional. When there is no language code in the url then the normal dispatch rules mechanism is followed. So all old urls (without language code) still work.
[12:48:36] kaos leaves the room
[12:49:12] <Marc Worrell> And the language code must be a known iso code from the iso639 list which is hard coded in zotonic.
[12:49:53] <Ilya Rezvov> ok, thx
[12:49:55] <Marc Worrell> (which makes for an interesting match for eg, Indonesian, which's code is 'id': http://example.com/id/id/123
[16:39:52] Ilya Rezvov leaves the room
[19:46:31] Ilya Rezvov joins the room
[21:18:05] <Ilya Rezvov> how add admin rights for user?
[23:55:10] <Marc Worrell> That depends on the ACL module you are using.
[23:55:30] <Marc Worrell> With the default module all users have admin rights
[23:56:03] <Marc Worrell> When you make your own, then you can see in resource_admin.erl:
[23:56:03] <Marc Worrell> is_authorized(ReqData, Context) ->
z_acl:wm_is_authorized(use, z_context:get(acl_module, Context, mod_admin), ReqData, Context).
[23:56:34] <Marc Worrell> and in resource_admin_edit.erl:
[23:56:35] <Marc Worrell> is_authorized(ReqData, Context) ->
{Context2, Id} = ensure_id(?WM_REQ(ReqData, Context)),
z_acl:wm_is_authorized([{use, mod_admin}, {view, Id}], Context2).
[23:56:59] <Marc Worrell> so, per default you need the {use, mod_admin} right
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!