clay-server 2.23.0-beta.1 → 2.23.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/daemon.js +2 -1
- package/lib/public/modules/admin.js +2 -2
- package/package.json +1 -1
package/lib/daemon.js
CHANGED
|
@@ -791,9 +791,10 @@ var relay = createServer({
|
|
|
791
791
|
onGetProjectAccess: function (slug) {
|
|
792
792
|
for (var i = 0; i < config.projects.length; i++) {
|
|
793
793
|
if (config.projects[i].slug === slug) {
|
|
794
|
+
var isMateProject = slug.indexOf("mate-") === 0;
|
|
794
795
|
return {
|
|
795
796
|
slug: slug,
|
|
796
|
-
visibility: config.projects[i].visibility || "public",
|
|
797
|
+
visibility: isMateProject ? "private" : (config.projects[i].visibility || "public"),
|
|
797
798
|
allowedUsers: config.projects[i].allowedUsers || [],
|
|
798
799
|
ownerId: config.projects[i].ownerId || null,
|
|
799
800
|
};
|
|
@@ -764,8 +764,8 @@ function renderSmtpTab(body, cfg) {
|
|
|
764
764
|
// --- Projects ---
|
|
765
765
|
function loadProjectsTab(body) {
|
|
766
766
|
var projectList = (ctx && ctx.projectList) || [];
|
|
767
|
-
// Exclude worktree projects (
|
|
768
|
-
projectList = projectList.filter(function (p) { return !p.isWorktree; });
|
|
767
|
+
// Exclude worktree and mate projects (mates are always private to their owner)
|
|
768
|
+
projectList = projectList.filter(function (p) { return !p.isWorktree && !p.isMate; });
|
|
769
769
|
cachedProjects = projectList;
|
|
770
770
|
|
|
771
771
|
if (projectList.length === 0) {
|