Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/2377 fix permissions from gui #2398

Merged
merged 4 commits into from
Jun 19, 2017

Conversation

dwlfrth
Copy link
Contributor

@dwlfrth dwlfrth commented Jun 14, 2017

Description

Add the ability to "fix permissions" from the GUI

Impacts

Admin GUI

Issue

fixes #2377

Delete branch after merge

YES

NEWS file entries

Enhancements

  • Ability to run "fixpermissions" from the web admin GUI

Bug Fixes

@dwlfrth dwlfrth added this to the PacketFence-7.2 milestone Jun 14, 2017
@dwlfrth dwlfrth requested a review from julsemaan June 14, 2017 19:33
Copy link
Member

@jrouzierinverse jrouzierinverse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After performing a fix permissions.

The fix permission option in the menu is no longer available unless I refresh the page.

The same behavior is found in perform checkup.

@@ -502,6 +502,16 @@ sub fix_file_permissions {
pf_run('sudo /usr/local/pf/bin/pfcmd fixpermissions file "' . $file . '"');
}

=item fix_files_permissions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a better name fix_permissions_all.
I find the name to close to the other function.

@julsemaan
Copy link
Collaborator

@jrouzierinverse, the checkup already had that behavior to prevent doing it 5 times if the user wanted to refer to it 5 different times given it takes a lot of time to accomplish.

IMO, I'd leave it to that behavior for all items of this menu but in the end you guys can decide together what is best

@jrouzierinverse
Copy link
Member

There was an additional issue there that was not addressed

@jrouzierinverse
Copy link
Member

There should be at least a way to clear and rerun the results since some people would not know how rerun those commands.

@cgx
Copy link
Collaborator

cgx commented Jun 15, 2017

I agree with @jrouzierinverse.

@dwlfrth: let me know if you need help.

@julsemaan
Copy link
Collaborator

@jrouzierinverse

I didn't clear your review, I just approved the PR since my review was requested on it yesterday

If you look, yours is still in place and left the PR in 'Changes requested'

@jrouzierinverse
Copy link
Member

@julsemaan Sorry you are correct

@julsemaan
Copy link
Collaborator

@jrouzierinverse

No problem, this gave me an idea for your next Christmas gift:
image

@jrouzierinverse
Copy link
Member

Thanks!

@dwlfrth
Copy link
Contributor Author

dwlfrth commented Jun 16, 2017

@jrouzierinverse maybe you could have a look at that additional issue (Option to have it automated when we detect a file permission issue.)

@dwlfrth
Copy link
Contributor Author

dwlfrth commented Jun 19, 2017

GUI is adjusted.
@jrouzierinverse, are you taking care of the additional issue ?

@jrouzierinverse jrouzierinverse merged commit a2801d6 into devel Jun 19, 2017
jrouzierinverse added a commit that referenced this pull request Jun 19, 2017
@dwlfrth dwlfrth deleted the fix/2377_fix-permissions-from-gui branch June 22, 2017 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fixpermission from the webadmin
4 participants