openwrt / luci

LuCI - OpenWrt Configuration Interface
Apache License 2.0
6.09k stars 2.48k forks source link

Discussion on Luci multi-user features #623

Closed hnyman closed 4 years ago

hnyman commented 8 years ago

@Hostle has created a functional system for enabling handling multiple users in Luci.

@Hostle has actually created two alternative methods for a year-old Luci (from March 2015, CC15.05 development cycle) into his Github repo. I have imported the changes into up-to-date DD trunk and have also squashed and polished the commits for discussion purposes to have minimal diffs.

Hostle thinks that the newer method is better, so I will present that here.

Original discussion at forum: https://forum.openwrt.org/viewtopic.php?id=54593 Discussion also at: https://github.com/Hostle/luci/commit/c1ba7d780fbafba1d882e3d05ff96baeaee131f3#commitcomment-15451559

"New method":

"New" original, commits from Hostle, updated in April 2017: https://github.com/Fire-WRT/luci/commits/multi4

"New" cleaned-up version from my repo, "multi4-clean" branch, contains four squashed commits targeting LEDE & Openwrt DD trunk/master: https://github.com/hnyman/luci/commits/multi4-clean (March2018: I have rebased multi4 branch history with the LuCI of June 2017.)

Trying the code:

If you want to try the multi-user code, you can easily add my Luci repo as a remote to your own git and then pull from "multi4-clean" branch. The multi4-clean branch contains up-to-date LuCI of 26 June 2017.

I used these commands to import this to my own Openwrt build. (I also created a new branch "multiuser" at my local feed repo so that I easily push the changes aside by "git checkout master"):

 cd feeds/luci
 git checkout 6047dacb6253c
 git checkout -b multiuser
 git remote add hnyman https://github.com/hnyman/luci.git
 git pull hnyman multi4-clean
 git log --oneline

Alternatively, you can download the 4 commits as patches from github and apply them manually. (just add .patch to the end of the commit's page address and you get a patch that can be download with wget.)

Identified problems/challenges:

NOTE: old, reflects 2015 observations

Screenshot from trunk Designated Driver r48235: multiuser1

hnyman commented 8 years ago

I think that I spotted a major flaw in the "new" method: the definition of allowed pages are cumulative for users. One page allowed for at least one user in group "user" is allowed for all users in group "user".

I defined two limited users "koe" and "test" and allowed them different pages in the status tab. Still both saw any page that at least one of them saw:

root@OpenWrt:~# cat /etc/config/users

config user
        option name 'koe'
        option user_group 'user'
        option shell '1'
        option Status_menus 'Status_menus'
        option Network_menus 'disabled'
        option System_menus 'System_menus'
        option system_subs 'Software'
        option status_subs 'Firewall Routes'

config user
        option name 'test'
        option user_group 'user'
        option shell '0'
        option System_menus 'disabled'
        option Network_menus 'Network_menus'
        option network_subs 'Switch Firewall'
        option Status_menus 'Status_menus'
        option status_subs 'System_log Kernel_log'

The rights updated ok on the fly when I adjusted rights in one firefox browser with admin rights and used one IE window as plain limited user. So, the provisioning itself worked ok, but the user just got too much rights from the other basic users.

I guess that the allowed pages provisioning should be by the user class. E.g. users or admin. And each user should belong into into exactly one group. Then this might work.

Hostle commented 8 years ago

i replicated your error and tracked down the source, thankfully its just an error in the code...not in the logic :) I will make the necessary changes tonight

On Thu, Jan 14, 2016 at 2:16 PM, Hannu Nyman notifications@github.com wrote:

I think that I spotted a major flaw in the "new" method: the definition of allowed pages are cumulative for users. One page allowed for at least one user in group "user" is allowed for all users in group "user".

I defined two limited users "koe" and "test" and allowed them different pages in the status tab. Still both saw any page that at least one of them saw:

root@OpenWrt:~# cat /etc/config/users

config user option name 'koe' option user_group 'user' option shell '1' option Status_menus 'Status_menus' option Network_menus 'disabled' option System_menus 'System_menus' option system_subs 'Software' option status_subs 'Firewall Routes'

config user option name 'test' option user_group 'user' option shell '0' option System_menus 'disabled' option Network_menus 'Network_menus' option network_subs 'Switch Firewall' option Status_menus 'Status_menus' option status_subs 'System_log Kernel_log'

[image: multiuser2] https://cloud.githubusercontent.com/assets/7926856/12334577/59dd50fa-bb03-11e5-8bd7-9e6dc035806b.png

The rights updated ok on the fly when I adjusted rights in one firefox browser with admin rights and used one IE window as plain limited user. So, the provisioning itself worked ok, but the user just got too much rights from the other basic users.

I guess that the allowed pages provisioning should be by the user class. E.g. users or admin. And each user should belong into into exactly one group. Then this might work.

— Reply to this email directly or view it on GitHub https://github.com/openwrt/luci/issues/623#issuecomment-171748327.

hnyman commented 8 years ago

You are right, the rights work ok after those changes. Each user has separate rights. I will incorporate those into my source tree.

However, I noticed a new bug: if you enable a tab but do not enable any pages, you will get this error:

usr/lib/lua/luci/users.lua:292: attempt to concatenate a nil value
stack traceback:
    /usr/lib/lua/luci/users.lua:292: in function 'get_menus'
    /usr/lib/lua/luci/users.lua:303: in function 'hide_menus'
    /usr/lib/lua/luci/controller/admin/network.lua:23: in function 'user'
    /usr/lib/lua/luci/controller/admin/network.lua:33: in function 'v'
    /usr/lib/lua/luci/dispatcher.lua:552: in function 'createtree'
    /usr/lib/lua/luci/dispatcher.lua:216: in function 'dispatch'
    /usr/lib/lua/luci/dispatcher.lua:141: in function </usr/lib/lua/luci/dispatcher.lua:140>

That was after user "test3" had access to Network menu but he had no pages enabled.

Enabling at least one page returns Luci to the normal functionality.

config user
        option name 'test3'
        option user_group 'user'
        option shell '1'
        option System_menus 'disabled'
        option Network_menus 'Network_menus'
        option Status_menus 'Status_menus'
        option Status_subs 'Firewall'

Add option Network_subs 'Wifi' and it works again.

hnyman commented 8 years ago

I also noticed that when users with limited right visit luci pages, system log gets messages for each page:

Fri Jan 15 10:50:15 2016 daemon.err uhttpd[2276]: uci: Entry not found
Fri Jan 15 10:50:16 2016 daemon.err uhttpd[2276]: uci: Entry not found
Fri Jan 15 10:50:21 2016 daemon.err uhttpd[2276]: uci: Entry not found
Fri Jan 15 10:50:26 2016 daemon.err uhttpd[2276]: uci: Entry not found
Fri Jan 15 10:50:31 2016 daemon.err uhttpd[2276]: uci: Entry not found
Fri Jan 15 10:50:33 2016 daemon.err uhttpd[2276]: uci: Entry not found

There seems to be at least one line for each visited page. Additionally, each dynamically updating (every 5 secs) XHR component generates a new error line to the log.

jow- commented 8 years ago

The uci errors in the log are due to the fact that Hostle directly parses "uci show users" output using "io.popen()" - this is extremely inefficient - please use the uci bindings directly.

Hostle commented 8 years ago

I will rewrite things to use the uci binding, thanks Jow

On Fri, Jan 15, 2016 at 6:10 AM, Jo-Philipp Wich notifications@github.com wrote:

The uci errors in the log are due to the fact that host directly parses "uci show users" output using "io.popen()" - this is extremely inefficient

  • please use the uci bindings directly.

— Reply to this email directly or view it on GitHub https://github.com/openwrt/luci/issues/623#issuecomment-171935171.

hnyman commented 8 years ago

Somebody asked a question about the multi-user code in the forum a few minutes ago, just before the forum crashed once again. I have imported the changes from hostle in January to the new multi3 branch, and I have just rebased that branch to the top of the current Luci trunk. https://github.com/hnyman/luci/commits/multi3

(EDIT: but apparently that is behind hostle newest changes, Will have to check.)

Hostle commented 8 years ago

your multi-user commits are way behind mine.... check out my latest commits

On Tue, Feb 23, 2016 at 10:31 AM, Hannu Nyman notifications@github.com wrote:

Somebody asked a question about the multi-user code in the forum a few minutes ago, just before the forum crashed once again. I have imported the changes from hostle until 11 days ago to the new multi3 branch, and I have just rebased that branch to the top of the current Luci trunk. https://github.com/hnyman/luci/commits/multi3

That should match hostle's multi-user code with the current trunk.

— Reply to this email directly or view it on GitHub https://github.com/openwrt/luci/issues/623#issuecomment-187744542.

hnyman commented 8 years ago

Looks like that. I was just browsing the code and noticed that you have added new commits ~2 weeks ago, apparently after I first created the multi3 branch. I have likely your January commits, but not those from February. (and it is a bit hard to identify them from the ftp stuff etc. as they all are in the same branch)

hnyman commented 8 years ago

I imported your changes to Luci trunk tip, and compiled. At first the creation of new users did not work at all. But then I spotted the filename error at https://github.com/Hostle/luci/blob/master/applications/luci-app-multi-user/root/etc/uci-defaults/09_users (due to commit https://github.com/Hostle/luci/commit/6d280f2dacdd148cde300ac587ab84a4ae283ca8 and the empty fix??? of https://github.com/Hostle/luci/commit/44f6f917567bcf835ad19c2a9a7689384485b1e2 . Strange. Some push error to Github?)

I pushed a fix for that in my repo and re-compiled. Not editing users works.

But when a new user has been created, you can't see the possible menu subitems on the first visit to the user. Instead you have to save him first and then at the next visit the items may get visible.

That is possibly due to the recent changes in Luci trunk. (your repo is 88 commits behind the Luci trunk.)

Hostle commented 8 years ago

Excellent, I will look into the issue this evening and try to correct it.

Thanks Hannu

On Tue, Feb 23, 2016 at 12:06 PM, Hannu Nyman notifications@github.com wrote:

I imported your changes to Luci trunk tip, and compiled. At first the creation of new users did not work at all. But then I spotted the filename error at https://github.com/Hostle/luci/blob/master/applications/luci-app-multi-user/root/etc/uci-defaults/09_users (due to commit Hostle@6d280f2 https://github.com/Hostle/luci/commit/6d280f2dacdd148cde300ac587ab84a4ae283ca8 and the empty fix??? of Hostle@44f6f91 https://github.com/Hostle/luci/commit/44f6f917567bcf835ad19c2a9a7689384485b1e2 . Strange. Some push error to Github?)

I pushed a fix for that in my repo and re-compiled. Not editing users works.

But when a new user has been created, you can't see the possible menu subitems on the first visit to the user. Instead you have to save him first and then at the next visit the items may get visible.

That is possibly due to the recent changes in Luci trunk. (your repo is 88 commits behind the Luci trunk.)

— Reply to this email directly or view it on GitHub https://github.com/openwrt/luci/issues/623#issuecomment-187794050.

Hostle commented 8 years ago

It appears to be a problem with the multi value dependency handling, the Network>>Interfaces>>Add Interface is broken aswell, the check box Create a bridge over multiple interfaces

Should enable the "Cover the following interfaces" list, this check box currently does nothing and the multiValue list is always visible. I think this warrants a ticket

On Tue, Feb 23, 2016 at 10:31 AM, Hannu Nyman notifications@github.com wrote:

Somebody asked a question about the multi-user code in the forum a few minutes ago, just before the forum crashed once again. I have imported the changes from hostle until 11 days ago to the new multi3 branch, and I have just rebased that branch to the top of the current Luci trunk. https://github.com/hnyman/luci/commits/multi3

That should match hostle's multi-user code with the current trunk.

— Reply to this email directly or view it on GitHub https://github.com/openwrt/luci/issues/623#issuecomment-187744542.

hnyman commented 8 years ago

It appears to be a problem with the multi value dependency handling, the Network>>Interfaces>>Add Interface is broken as well, the check box Create a bridge over multiple interfaces

Yeah, I can see the problem at https://192.168.1.1/cgi-bin/luci/admin/network/iface_add

This sounds like something similar as the issue in https://github.com/openwrt/luci/issues/648#issuecomment-187338044 , which was fixed to some extent by https://github.com/openwrt/luci/commit/385a49277ac3339e3ea9a41abde2db0eba5427f9 . Apparently there are similar issue still left. That will require help from @jow-

Hostle commented 8 years ago

Yes, it's very similar to the #648 issue, going through the latest commits I see there has been many changes to the cbi functionality and many problems as a result. I will try to dig into it a little further and see if I can find out which commit broke it

On Wed, Feb 24, 2016 at 2:22 AM, Hannu Nyman notifications@github.com wrote:

It appears to be a problem with the multi value dependency handling, the Network>>Interfaces>>Add Interface is broken as well, the check box Create a bridge over multiple interfaces

Yeah, I can see the problem at https://192.168.1.1/cgi-bin/luci/admin/network/iface_add

This sounds like something similar as the issue in #648 (comment) https://github.com/openwrt/luci/issues/648#issuecomment-187338044 , which was fixed to some extent by 385a492 https://github.com/openwrt/luci/commit/385a49277ac3339e3ea9a41abde2db0eba5427f9 . Apparently there are similar issue still left. That will require help from @jow- https://github.com/jow-

— Reply to this email directly or view it on GitHub https://github.com/openwrt/luci/issues/623#issuecomment-188117022.

jack338c commented 8 years ago

@hnyman

Hello,I'm a new guy,please help me

after done the following code,

cd feeds/luci git checkout -b multiuser git remote add hnyman https://github.com/hnyman/luci.git git pull hnyman multi3 git log --oneline

then I do :./scripts/feeds update -a ,./scripts/feeds install -a ,make menuconfig ,make -j 3

but the image did not have the mutluser function.How can I make this works.?

thanks

Jack

Hostle commented 8 years ago

you need to select the multi-user package during the menuconfig ...

LuCI >> Apps >> Multi-user

jack338c commented 8 years ago

@Hostle Hello,Hostle I did it according your way,but it does't work yet. I only find LuCI >> Apps>luci-app-mutlwan something else please help me thanks

addtion: during /scripts/feeds install ,no installing package name is Multi-user I use git clone git://git.openwrt.org/15.05/openwrt.git for building

hnyman commented 8 years ago

@jack338c You need to use the Openwrt trunk (Designated Driver), not the previous 15.05 branch. I followed your example and it worked just great...

  cd feeds/luci
  git checkout -b multiuser
  git remote add hnyman https://github.com/hnyman/luci.git
  git pull hnyman multi3
  git log --oneline
  cd ../..
  ./scripts/feeds update
  ./scripts/feeds install -a

  And note that the feeds install phase notifies about the new luci-app-multi-user,
  after which it will be available in menuconfig:
perus@ub1604:/Openwrt/trunk$ ./scripts/feeds install -a
Installing all packages from feed packages.
Installing all packages from feed luci.
Installing package 'luci-app-multi-user' from luci
Installing all packages from feed routing.
...

I have also updated the "multi3" branch to the current head of Luci git, (May 2016).

tcpipchip commented 8 years ago

Sir, can you give us support to port it to CHAOS 15.05.1 ? Let me know the cost.

Hostle commented 8 years ago

I will take a look on the weekend, the original support was based on CC 15.05, it is available in my repo but I may need to update the src with the latest changes and test with 15.05.1 once I have tested it I will post a link to the repo .. free of charge of course, that's the whole idea of opensrc projects :) contribute where you can!

Cheers

tcpipchip commented 8 years ago

Nice!!!!!, My contribute is to test it on LINKIT SMART 7688 for you!!!!

jack338c commented 8 years ago

@hnyman thank you very much for your help.it works for me now give my best to your all life!

is that possible to hide the service menu in openwrt? if so,that's will be more attractive !

tcpipchip commented 8 years ago

Hostle,

"...the original support was based on CC 15.05, it is available in my repo but I may need to update the src with the latest changes and test with 15.05.1"

Did you test it o CC 15.05 and works perfectly ?

Is that the sequence install that you use in the CC 15.05 for install UI-MULTI-USER ?

cd feeds/luci git checkout -b multiuser git remote add hnyman https://github.com/hnyman/luci.git git pull hnyman multi3 git log --oneline cd ../.. ./scripts/feeds update ./scripts/feeds install -a

And note that the feeds install phase notifies about the new luci-app-multi-user, after which it will be available in menuconfig: perus@ub1604:/Openwrt/trunk$ ./scripts/feeds install -a Installing all packages from feed packages. Installing all packages from feed luci. Installing package 'luci-app-multi-user' from luci Installing all packages from feed routing.

Would you like to make some tests in my board ?

hnyman commented 8 years ago

Is that the sequence install that you use in the CC 15.05 for install UI-MULTI-USER ?

No. The code in my github repo (hnyman) is for trunk only.

There is no cc15.05 version of the current code. (hostle originally made the code for cc15.05, but then modified it to match the changes in trunk as that is where the development should be done.)

tcpipchip commented 8 years ago

Ok! Thank you so much!

Enviada do meu iPhone

Em 21/05/2016, às 04:58, "Hannu Nyman" notifications@github.com escreveu:

Is that the sequence install that you use in the CC 15.05 for install UI-MULTI-USER ? No. The code in my github repo (hnyman) is for trunk only.

There is no cc15.05 version of the current code. (hostle originally made the code for cc15.05, but then modified it to match the changes in trunk as that is where the development should be done.)

— You are receiving this because you commented. Reply to this email directly or view it on GitHub

tcpipchip commented 7 years ago

Hello, is there some update that allow multiusers have access to "Mount Point" and "MJPG-streamer" menus to enable them or not ? Thanks so much!

Hostle commented 7 years ago

I am just finishing up the code that will allow all luci addon meus to be enabled/disabled by the root user ... I have it functioning now, I am just in the process of debugging and uploading the new code to my git, then if you ask Hannu really nice he may just upload it to his git too. I hope to have it finished before the weekend.

Hostle

On Tue, Jul 19, 2016 at 11:25 AM, tcpipchip notifications@github.com wrote:

Hello, is there some update that allow multiusers have access to "Mount Point" and "MJPG-streamer" menus to enable them or not ? Thanks so much!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openwrt/luci/issues/623#issuecomment-233668862, or mute the thread https://github.com/notifications/unsubscribe-auth/AKvTjgeuuBNQMgpyJJxRI5vMjTG27KSnks5qXOxsgaJpZM4HFCc0 .

tcpipchip commented 7 years ago

Hi, did you read my mind ??? [😊]

Please, let me know when ready! Ok ?

Miguel


De: Hostle notifications@github.com Enviado: terça-feira, 19 de julho de 2016 21:36 Para: openwrt/luci Cc: tcpipchip; Comment Assunto: Re: [openwrt/luci] Discussion on Luci multi-user features (#623)

I am just finishing up the code that will allow all luci addon meus to be enabled/disabled by the root user ... I have it functioning now, I am just in the process of debugging and uploading the new code to my git, then if you ask Hannu really nice he may just upload it to his git too. I hope to have it finished before the weekend.

Hostle

On Tue, Jul 19, 2016 at 11:25 AM, tcpipchip notifications@github.com wrote:

Hello, is there some update that allow multiusers have access to "Mount Point" and "MJPG-streamer" menus to enable them or not ? Thanks so much!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openwrt/luci/issues/623#issuecomment-233668862, or mute the thread https://github.com/notifications/unsubscribe-auth/AKvTjgeuuBNQMgpyJJxRI5vMjTG27KSnks5qXOxsgaJpZM4HFCc0 .

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openwrt/luci/issues/623#issuecomment-233774034, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzBDDxkjhQqy0pM-kVRHcGJm5OtHqks5qXUN4gaJpZM4HFCc0.

Hostle commented 7 years ago

You can test it out if you replace you luci feed with mine repo in your feeds.conf.default ...

src-git luci https://github.com/Fire-Wrt-2016/luci;luci-multi-user-15.05.1

then do

./scripts/feeds update -a ./scripts/feeds install -a make menuconfig

then select the multi-user package in the LuCI-->Applications -->> luci-app-multi-user

It should work fine, if you have any problems let me know. Note: this is for chaos_calmer 15.05.1 branch, I am not quite done the trunk version yet.

Hostle

On Tue, Jul 19, 2016 at 6:18 PM, tcpipchip notifications@github.com wrote:

Hi, did you read my mind ??? [😊]

Please, let me know when ready! Ok ?

Miguel


De: Hostle notifications@github.com Enviado: terça-feira, 19 de julho de 2016 21:36 Para: openwrt/luci Cc: tcpipchip; Comment Assunto: Re: [openwrt/luci] Discussion on Luci multi-user features (#623)

I am just finishing up the code that will allow all luci addon meus to be enabled/disabled by the root user ... I have it functioning now, I am just in the process of debugging and uploading the new code to my git, then if you ask Hannu really nice he may just upload it to his git too. I hope to have it finished before the weekend.

Hostle

On Tue, Jul 19, 2016 at 11:25 AM, tcpipchip notifications@github.com wrote:

Hello, is there some update that allow multiusers have access to "Mount Point" and "MJPG-streamer" menus to enable them or not ? Thanks so much!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openwrt/luci/issues/623#issuecomment-233668862, or mute the thread < https://github.com/notifications/unsubscribe-auth/AKvTjgeuuBNQMgpyJJxRI5vMjTG27KSnks5qXOxsgaJpZM4HFCc0>

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub< https://github.com/openwrt/luci/issues/623#issuecomment-233774034>, or mute the thread< https://github.com/notifications/unsubscribe-auth/AK9MzBDDxkjhQqy0pM-kVRHcGJm5OtHqks5qXUN4gaJpZM4HFCc0>.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openwrt/luci/issues/623#issuecomment-233783940, or mute the thread https://github.com/notifications/unsubscribe-auth/AKvTjlzDP_wYQegs1um7WH7v9--u6ytmks5qXU1OgaJpZM4HFCc0 .

tcpipchip commented 7 years ago

Nice, i will test...

Btw, i am using today your multi-user in a project...all working fine...except this update...

If i created a IPK, may i install OVER that version ?

Miguel


De: Hostle notifications@github.com Enviado: quarta-feira, 20 de julho de 2016 01:38 Para: openwrt/luci Cc: tcpipchip; Comment Assunto: Re: [openwrt/luci] Discussion on Luci multi-user features (#623)

You can test it out if you replace you luci feed with mine repo in your feeds.conf.default ...

src-git luci https://github.com/Fire-Wrt-2016/luci;luci-multi-user-15.05.1

then do

./scripts/feeds update -a ./scripts/feeds install -a make menuconfig

then select the multi-user package in the LuCI-->Applications -->> luci-app-multi-user

It should work fine, if you have any problems let me know. Note: this is for chaos_calmer 15.05.1 branch, I am not quite done the trunk version yet.

Hostle

On Tue, Jul 19, 2016 at 6:18 PM, tcpipchip notifications@github.com wrote:

Hi, did you read my mind ??? [??]

Please, let me know when ready! Ok ?

Miguel


De: Hostle notifications@github.com Enviado: terça-feira, 19 de julho de 2016 21:36 Para: openwrt/luci Cc: tcpipchip; Comment Assunto: Re: [openwrt/luci] Discussion on Luci multi-user features (#623)

I am just finishing up the code that will allow all luci addon meus to be enabled/disabled by the root user ... I have it functioning now, I am just in the process of debugging and uploading the new code to my git, then if you ask Hannu really nice he may just upload it to his git too. I hope to have it finished before the weekend.

Hostle

On Tue, Jul 19, 2016 at 11:25 AM, tcpipchip notifications@github.com wrote:

Hello, is there some update that allow multiusers have access to "Mount Point" and "MJPG-streamer" menus to enable them or not ? Thanks so much!

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openwrt/luci/issues/623#issuecomment-233668862, or mute the thread < https://github.com/notifications/unsubscribe-auth/AKvTjgeuuBNQMgpyJJxRI5vMjTG27KSnks5qXOxsgaJpZM4HFCc0>

.

You are receiving this because you commented. Reply to this email directly, view it on GitHub< https://github.com/openwrt/luci/issues/623#issuecomment-233774034>, or mute the thread< https://github.com/notifications/unsubscribe-auth/AK9MzBDDxkjhQqy0pM-kVRHcGJm5OtHqks5qXUN4gaJpZM4HFCc0>.

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openwrt/luci/issues/623#issuecomment-233783940, or mute the thread https://github.com/notifications/unsubscribe-auth/AKvTjlzDP_wYQegs1um7WH7v9--u6ytmks5qXU1OgaJpZM4HFCc0 .

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openwrt/luci/issues/623#issuecomment-233815668, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzCum-CRHd9MQsww6fyswulIknDI3ks5qXXwegaJpZM4HFCc0.

Hostle commented 7 years ago

No you must do a complete update, most of the new code is in the main dispatcher.lua file

tcpipchip commented 7 years ago

I will test now and see if all works!


De: Hostle notifications@github.com Enviado: quarta-feira, 20 de julho de 2016 12:14 Para: openwrt/luci Cc: tcpipchip; Comment Assunto: Re: [openwrt/luci] Discussion on Luci multi-user features (#623)

No you must do a complete update, most of the new code is in the main dispatcher.lua file

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openwrt/luci/issues/623#issuecomment-233931869, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzOAv5EX5OfnkY04Vngh10NSg1zhuks5qXhEPgaJpZM4HFCc0.

tcpipchip commented 7 years ago

Hi, i found some bugs.

Btw, did you test on wich design, openwrt, freifunk, bootstrap ?

Let me know!

Then i can report the bugs


De: Hostle notifications@github.com Enviado: quarta-feira, 20 de julho de 2016 12:14 Para: openwrt/luci Cc: tcpipchip; Comment Assunto: Re: [openwrt/luci] Discussion on Luci multi-user features (#623)

No you must do a complete update, most of the new code is in the main dispatcher.lua file

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openwrt/luci/issues/623#issuecomment-233931869, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzOAv5EX5OfnkY04Vngh10NSg1zhuks5qXhEPgaJpZM4HFCc0.

Hostle commented 7 years ago

I only use bootstrap.. however the code should not be affected by th theme

tcpipchip commented 7 years ago

lets go!

1) If you Enable Network Menus and only select Interfaces, when you open browser, you will see Interfaces and Firewall too!

2) if you Enable System Menus and only select Mount_Points when you open browser, you can´t see the System Menus, but, if you choose Mount_Points and System, you will see the System Menus and Mount Points and System

See

https://dl.dropboxusercontent.com/u/83554849/bug1.png

https://dl.dropboxusercontent.com/u/83554849/bug1.pngI can only see System Menu if i choose System item and Mount Points

[https://dl.dropboxusercontent.com/u/83554849/bug1.png]

Do you understand ?

Miguel


De: Hostle notifications@github.com Enviado: quarta-feira, 20 de julho de 2016 21:15 Para: openwrt/luci Cc: tcpipchip; Comment Assunto: Re: [openwrt/luci] Discussion on Luci multi-user features (#623)

I only use bootstrap.. however the code should not be affected by th theme

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openwrt/luci/issues/623#issuecomment-234085681, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzMHc2oCn9fjz34OgtFG4piHBeN6Pks5qXpAMgaJpZM4HFCc0.

tcpipchip commented 7 years ago

https://dl.dropboxusercontent.com/u/83554849/bug2.png

For example, to get access to Mount Point, i had to enable System too [☹]

[https://dl.dropboxusercontent.com/u/83554849/bug2.png]


De: Hostle notifications@github.com Enviado: quarta-feira, 20 de julho de 2016 21:15 Para: openwrt/luci Cc: tcpipchip; Comment Assunto: Re: [openwrt/luci] Discussion on Luci multi-user features (#623)

I only use bootstrap.. however the code should not be affected by th theme

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openwrt/luci/issues/623#issuecomment-234085681, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzMHc2oCn9fjz34OgtFG4piHBeN6Pks5qXpAMgaJpZM4HFCc0.

Hostle commented 7 years ago

Ok that makes sense, I am guessing it it because the System main tab and the System--»System are being processed as one. Should be an easy fix.

tcpipchip commented 7 years ago

Let me know when you fix it! Ok ?

Thanks so much!

Enviada do meu iPhone

Em 20/07/2016, ?s 18:47, "Hostle" notifications@github.com<mailto:notifications@github.com> escreveu:

Ok that makes sense, I am guessing it it because the System main tab and the System-->System are being processed as one. Should be an easy fix.

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openwrt/luci/issues/623#issuecomment-234093859, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzIEpp0cVDWoM2m1tv1zdpG2UpXcWks5qXpdqgaJpZM4HFCc0.

Fire-Wrt-2016 commented 7 years ago

This issue should be fixed with latest commits, rebuild and try again ...

tcpipchip commented 7 years ago

Hello!

I will test now!

Thanks so much!

Miguel


De: Fire-Wrt-2016 notifications@github.com Enviado: quinta-feira, 21 de julho de 2016 04:23 Para: openwrt/luci Cc: tcpipchip; Comment Assunto: Re: [openwrt/luci] Discussion on Luci multi-user features (#623)

This issue should be fixed with latest commits, rebuild and try again ...

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openwrt/luci/issues/623#issuecomment-234153310, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzO9fx1A_GfVTBY2k9wZ7tDZ5TBLDks5qXvQxgaJpZM4HFCc0.

tcpipchip commented 7 years ago

Now looks that is working!!!!!!

Congratulations!

A friend will test too soon!

I will report!


De: Fire-Wrt-2016 notifications@github.com Enviado: quinta-feira, 21 de julho de 2016 04:23 Para: openwrt/luci Cc: tcpipchip; Comment Assunto: Re: [openwrt/luci] Discussion on Luci multi-user features (#623)

This issue should be fixed with latest commits, rebuild and try again ...

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openwrt/luci/issues/623#issuecomment-234153310, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzO9fx1A_GfVTBY2k9wZ7tDZ5TBLDks5qXvQxgaJpZM4HFCc0.

RJRvdMeer commented 7 years ago

Hello,

What "src-git luci " should I use, if I want the latest multi-user and material thema? Or can you help me to get this running?

I tried the following in feeds.conf.default (one at the time ;) ) src-git luci https://github.com/openwrt/luci.git src-git luci https://github.com/openwrt/luci.git;for-15.05 src-git luci https://github.com/Hostle/openwrt-luci-multi-user.git src-git luci https://github.com/Fire-Wrt-2016/luci

Robert

tcpipchip commented 7 years ago

https://github.com/Hostle/openwrt-luci-multi-user.git

RJRvdMeer commented 7 years ago

Thx tcpipchip. Tried it, and multi user works. Only no material theme.

tcpipchip commented 7 years ago

change the theme and will work!


De: RJRvdMeer notifications@github.com Enviado: quarta-feira, 28 de setembro de 2016 12:04 Para: openwrt/luci Cc: tcpipchip; Comment Assunto: Re: [openwrt/luci] Discussion on Luci multi-user features (#623)

Thx tcpipchip. Tried it, and multi user works. Only no material theme.

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openwrt/luci/issues/623#issuecomment-250147785, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzAQHVTt78JRqWl_ETp2TMr7igWp5ks5qulfHgaJpZM4HFCc0.

RJRvdMeer commented 7 years ago

sry, I must do something wrong. when I update and install luci I don't have material theme anymore as an option in LuCI->Themes.

hnyman commented 7 years ago

You need to install the material theme separately. That has nothing to do with multiuser. (and Material theme is only in trunk.)

RJRvdMeer commented 7 years ago

ah ok. any tips on that? just since material theme is in the openwrt/luci git and I'm not sure how to fetch this in a correct way. (in stead of copying it from this git)

hnyman commented 7 years ago

You need to install the material theme separately.

ah ok. any tips on that? j

If you are running trunk just do

opkg update
opkg install luci-theme-material

Or do the same actions in Luci (System -> Software).

EDIT: If you are building your own build, use menuconfig to select that theme.

tcpipchip commented 7 years ago

i tested on chaos and works too


De: Hannu Nyman notifications@github.com Enviado: quarta-feira, 28 de setembro de 2016 13:52 Para: openwrt/luci Cc: tcpipchip; Comment Assunto: Re: [openwrt/luci] Discussion on Luci multi-user features (#623)

You need to install the material theme separately.

ah ok. any tips on that? j

If trunk are running trunk just do

opkg update opkg install luci-theme-material

Or do the same actions in Luci (System -> Software).

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openwrt/luci/issues/623#issuecomment-250172565, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK9MzL6iMl-UiZQ5lUuGauJZmNPd6Lzsks5qunEdgaJpZM4HFCc0.