Skip to content

Commit

Permalink
refs #68 fix add member in public pages
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
  • Loading branch information
Julien Veyssier committed Aug 2, 2021
1 parent ce450c7 commit a2965ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/Controller/PageController.php
Expand Up @@ -852,6 +852,7 @@ public function apiPrivCreateProject(string $name, string $id, ?string $password
* @CORS
*/
public function apiGetProjectInfo(string $projectid, string $password): DataResponse {
error_log('apiGetProjectInfo PASSSSSWWWWWW "' . $password . '"');
$publicShareInfo = $this->projectService->getProjectInfoFromShareToken($password);
if ($this->checkLogin($projectid, $password) || $publicShareInfo['accesslevel'] !== null) {
$projectInfo = $this->projectService->getProjectInfo($projectid);
Expand Down Expand Up @@ -959,6 +960,7 @@ public function apiPrivSetProjectInfo(string $projectid, string $name, ?string $
* @CORS
*/
public function apiGetMembers(string $projectid, string $password, ?int $lastchanged = null): DataResponse {
error_log('PASSSSSWWWWWW "' . $password . '"');
$publicShareInfo = $this->projectService->getProjectInfoFromShareToken($password);
if ($this->checkLogin($projectid, $password) || $publicShareInfo['accesslevel'] !== null) {
$members = $this->projectService->getMembers($projectid, null, $lastchanged);
Expand Down
6 changes: 4 additions & 2 deletions src/components/SettingsTabSidebar.vue
Expand Up @@ -59,7 +59,8 @@
</span>
<button class="icon icon-info" @click="onInfoAddClicked" />
</h3>
<h4>
<h4
v-if="maintenerAccess">
<span class="icon icon-add" />
<span class="tcontent">
{{ t('cospend', 'Add a member') }}
Expand Down Expand Up @@ -312,6 +313,7 @@ export default {
unallocatedUsers() {
// prepend simple user
const result = []
console.debug('unallocatedUsers query ' + this.query)
if (this.query) {
result.push({
id: '',
Expand Down Expand Up @@ -346,8 +348,8 @@ export default {
this.$emit('project-edited', this.projectId)
},
asyncFind(query) {
this.query = query
if (!this.pageIsPublic) {
this.query = query
if (query === '') {
this.users = []
return
Expand Down

0 comments on commit a2965ab

Please sign in to comment.