* if run_mode is front, set rights to user.
 * fix a bug.