Page 1 of 1

some questions building dpkg, fermer, user permissions

Posted: Thu Aug 01, 2019 6:15 pm
by c.r.m
Could you also add dpkg scripts on Github repository so you can automatically create the dpkg *.deb files after the compilation process?

I tried to build afanasy on Ubuntu 18.04 but the compilation fails with the fermer modules and only compiles sucessfully without fermer. Is this normal for any Ubuntu versions or is there a workaround?

Do you have a possibility right now to set certain permissions on the web gui version to special useres? Right now I saw in the js code that you can type some passwords which then activate 2 different user modes but I didn't see any difference in the function range which the different users can have (all users have all possibilities). So is there something like having normal users with own user permissions and admin users with overall user permissions for the web gui version?

Re: some questions building dpkg, fermer, user permissions

Posted: Fri Aug 02, 2019 9:46 am
by timurhai
There is a script to create DEB or RPM packages, depending on OS:
https://github.com/CGRU/cgru/blob/maste ... ackages.sh
I use it to create releases.
Go to "utilities/release" folder and run it.

Afanasy lacks authorization mechanism.
It should be, and will be in some time, but for now it is not implemented.
AfWatch gets username just from environment.
Browser (client side javascript) has no access to environment for a security reasons.
So, for now, you should specify username in settings.
By default is "coord".
If specified user does not exists, it treats user as admin to show/manipulate all users jobs.