Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PluginMarket
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stud.IP
Plugins
PluginMarket
Commits
b3a30c5c
Commit
b3a30c5c
authored
7 years ago
by
Rasmus Fuhse
Browse files
Options
Downloads
Patches
Plain Diff
fixes
#75
parent
90199f43
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
classes/MarketPlugin.class.php
+3
-7
3 additions, 7 deletions
classes/MarketPlugin.class.php
views/approving/overview.php
+1
-1
1 addition, 1 deletion
views/approving/overview.php
views/myplugins/overview.php
+3
-3
3 additions, 3 deletions
views/myplugins/overview.php
with
7 additions
and
11 deletions
classes/MarketPlugin.class.php
+
3
−
7
View file @
b3a30c5c
...
@@ -39,25 +39,21 @@ class MarketPlugin extends SimpleORMap {
...
@@ -39,25 +39,21 @@ class MarketPlugin extends SimpleORMap {
'on_delete'
=>
'delete'
,
'on_delete'
=>
'delete'
,
'on_store'
=>
'store'
'on_store'
=>
'store'
);
);
$config
[
'registered_callbacks'
][
'before_store'
][]
=
'requestReview'
;
parent
::
configure
(
$config
);
parent
::
configure
(
$config
);
}
}
public
function
__construct
(
$id
=
null
)
{
$this
->
registerCallback
(
'before_store'
,
'requestReview'
);
parent
::
__construct
(
$id
);
}
public
function
requestReview
()
{
public
function
requestReview
()
{
if
(
$this
->
content
[
'publiclyvisible'
]
&&
!
$this
->
content_db
[
'publiclyvisible'
]
&&
!
$this
[
'approved'
])
{
if
(
$this
->
content
[
'publiclyvisible'
]
&&
!
$this
->
content_db
[
'publiclyvisible'
]
&&
!
$this
[
'approved'
])
{
$messaging
=
new
messaging
();
$messaging
=
new
messaging
();
$statement
=
DBManager
::
get
()
->
prepare
(
"
$statement
=
DBManager
::
get
()
->
prepare
(
"
SELECT roles_user.user
_
id
SELECT roles_user.userid
FROM roles
FROM roles
INNER JOIN roles_user ON (roles.roleid = roles_user.roleid)
INNER JOIN roles_user ON (roles.roleid = roles_user.roleid)
WHERE roles.rolename = 'Pluginbeauftragter'
WHERE roles.rolename = 'Pluginbeauftragter'
"
);
"
);
$statement
->
execute
();
$statement
->
execute
();
foreach
(
$statement
->
fetchAll
(
PDO
::
FETCH_COLUMN
,
0
)
as
$beauftragter
)
{
foreach
(
$statement
->
fetchAll
(
PDO
::
FETCH_COLUMN
,
0
)
as
$beauftragter
)
{
$messaging
->
sendSystemMessage
(
$messaging
->
sendSystemMessage
(
$beauftragter
,
$beauftragter
,
...
...
This diff is collapsed.
Click to expand it.
views/approving/overview.php
+
1
−
1
View file @
b3a30c5c
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</td>
</td>
<td
class=
"actions"
>
<td
class=
"actions"
>
<a
href=
"
<?=
$controller
->
url_for
(
'approving/review/'
.
$marketplugin
->
getId
())
?>
"
data-dialog
>
<a
href=
"
<?=
$controller
->
url_for
(
'approving/review/'
.
$marketplugin
->
getId
())
?>
"
data-dialog
>
<?=
Icon
::
create
(
'assessment'
)
?>
<?=
Icon
::
create
(
'assessment'
,
'clickable'
)
->
asImg
(
20
)
?>
</a>
</a>
</td>
</td>
</tr>
</tr>
...
...
This diff is collapsed.
Click to expand it.
views/myplugins/overview.php
+
3
−
3
View file @
b3a30c5c
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<td>
<td>
<?
if
(
$marketplugin
[
'publiclyvisible'
]
&&
!
$marketplugin
[
'approved'
])
:
?>
<?
if
(
$marketplugin
[
'publiclyvisible'
]
&&
!
$marketplugin
[
'approved'
])
:
?>
<?=
Icon
::
create
(
'exclaim-circle'
,
'status-red'
,
[
'title'
=>
_
(
"Plugin wurde noch nicht von einem Administrator freigeschaltet."
),
<?=
Icon
::
create
(
'exclaim-circle'
,
'status-red'
,
[
'title'
=>
_
(
"Plugin wurde noch nicht von einem Administrator freigeschaltet."
),
'class'
=>
"text-bottom"
])
?>
'class'
=>
"text-bottom"
])
->
asImg
(
20
)
?>
<?
endif
;
?>
<?
endif
;
?>
<a
href=
"
<?=
$controller
->
url_for
(
'presenting/details/'
.
$marketplugin
->
getId
())
?>
"
>
<a
href=
"
<?=
$controller
->
url_for
(
'presenting/details/'
.
$marketplugin
->
getId
())
?>
"
>
<?=
htmlReady
(
$marketplugin
[
'name'
])
?>
<?=
htmlReady
(
$marketplugin
[
'name'
])
?>
...
@@ -48,10 +48,10 @@
...
@@ -48,10 +48,10 @@
</td>
</td>
<td
class=
"actions"
>
<td
class=
"actions"
>
<a
href=
"
<?=
$controller
->
url_for
(
'myplugins/edit/'
.
$marketplugin
->
getId
())
?>
"
data-dialog
title=
"
<?=
_
(
"Plugin-Info bearbeiten"
)
?>
"
>
<a
href=
"
<?=
$controller
->
url_for
(
'myplugins/edit/'
.
$marketplugin
->
getId
())
?>
"
data-dialog
title=
"
<?=
_
(
"Plugin-Info bearbeiten"
)
?>
"
>
<?=
Icon
::
create
(
'edit'
)
?>
<?=
Icon
::
create
(
'edit'
,
'clickable'
)
->
asImg
(
20
)
?>
</a>
</a>
<a
href=
"
<?=
$controller
->
url_for
(
'myplugins/add_release/'
.
$marketplugin
->
getId
())
?>
"
data-dialog
title=
"
<?=
_
(
"Neues Release hinzufgen"
)
?>
"
>
<a
href=
"
<?=
$controller
->
url_for
(
'myplugins/add_release/'
.
$marketplugin
->
getId
())
?>
"
data-dialog
title=
"
<?=
_
(
"Neues Release hinzufgen"
)
?>
"
>
<?=
Icon
::
create
(
'add'
)
?>
<?=
Icon
::
create
(
'add'
,
'clickable'
)
->
asImg
(
20
)
?>
</a>
</a>
</td>
</td>
</tr>
</tr>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment