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

Changes to get new features work for impersonate app #27629

Closed
wants to merge 1 commit into from

Conversation

sharidas
Copy link
Contributor

Signed-off-by: Sujith H sharidasan@owncloud.com

Description

Changes to work with new changes proposed for impersonate app.

Related Issue

Motivation and Context

How Has This Been Tested?

The changes has been tested by creating new include groups for impersonate app.
Logout functionality is also tested. Logout makes user reach back to the original user.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@sharidas
Copy link
Contributor Author

@PVince81 Kindly review my change.

@@ -88,7 +88,13 @@
</li>
<?php endforeach; ?>
<li>
<a id="logout" <?php print_unescaped(OC_User::getLogoutAttribute()); ?>>
<a id="logout" <?php
if(\OC::$server->getAppConfig()->getValue('impersonate', 'enabled', '') !== '') {
Copy link
Contributor

Choose a reason for hiding this comment

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

👎 please, no app-specific code in core

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure. Will take care of this.

@@ -63,6 +63,8 @@ public function __construct( $renderAs, $appId = '' ) {
// yes - should be injected ....
$this->config = \OC::$server->getConfig();

\OC::$server->getEventDispatcher()->dispatch('OC\TemplateLayout::loadAdditionalScripts');
Copy link
Contributor

Choose a reason for hiding this comment

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

this is fine, will likely be useful

Signed-off-by: Sujith H <sharidasan@owncloud.com>
@PVince81
Copy link
Contributor

@sharidas obsolete ?

@sharidas
Copy link
Contributor Author

sharidas commented Apr 21, 2017

@PVince81 I was thinking about this change today when I posted my PR for core today. Can I close this because we no longer need it.

@sharidas sharidas closed this Apr 21, 2017
@sharidas sharidas deleted the impersonate-change-master branch April 24, 2017 07:01
@lock
Copy link

lock bot commented Aug 3, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants